change the onload function in another frame
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Zhang
Posted On:   Tuesday, March 18, 2003 07:47 AM

			
there are 2 Iframe on the screen,frm1 and frm2,what i want is:every time the page in frm1 loaded,do something like pop a message,but this code are not wrote in the page of frm1,instead,in the page of frm2,which means,the page in frm2 should detect once the page in frm1 loaded,alert a message.
is it posible?how?

Re: change the onload function in another frame

Posted By:   Nitesh_Naveen  
Posted On:   Wednesday, March 19, 2003 01:31 AM

Call the function on frm2 from frm1 onload using top.frames["frm2"].myFunction(). Accessing functions across frames can sometimes give access right problems in some cases. So it would be better to set a variable or so on the top window from frm2 and the onload function onfrm1 can access this.
About | Sitemap | Contact