faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 35 people (40%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

call a function from another window

Apr 8th, 2008 18:15
ha mo, Abolfazl Shirazi, Giovanni Tolomei,


Abolfazl Shirazi:
Calling a function from another window is not hard. You may want to 
call a function from the child window or the parent window:
1- To call a function (which is in the parent window) from the child 
window Try:
function CallFun() {
	parent.ParentFunction()
}
2- To call a function (which is in the Child window) from the parent 
window Try:
function CallFun() {
	/* ChildWin is the name of the child window */
	ChildWin.ChildFunction()
}
Have a good time!
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com