
February 19th, 2002, 02:07 PM
|
|
Junior Member
|
|
Join Date: Feb 2001
Posts: 18
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
IFrame and Javascript
hey,
I am in desperate need of a mechanism through which i can tell if a page in an IFRAME has redirected to another page. Specifically i want to run a javascript function AFTER the page in the iframe has changed (been redirected to another page).
i have no problem attaching a function to the onunload event of the page. the problem is that onunload is obviously not the same a onload of the new page. so i get stuck in a situation where i know the page has just unloaded but the new page hasn;t loaded.
so there are 2 things that would help me:
1) a way in javascript written on the page containing the iframe to tell the browser to let the iframe continue loading after i recognize the onunload event. that way i can call that function and when it is done i know that the new ifram page has loaded.
2) a way to make an event happen in the iframe AFTER a new page has loaded in the frame. this event needs to be viewable by the page containing the iframe tag.
thanks for any help
-me
|