You are here: irt.org | BBS | Re: onLoad event for IFRAMES? [This BBS is closed]
Posted by Martin Webb on August 20, 1998 at 03:33:23:
In Reply to: onLoad event for IFRAMES? posted by Paul Donnelly on August 18, 1998 at 18:49:37:
: it seems that iframes do not support the onLoad event caller.
: is there a way to make the script below work...without resorting to an onLoad event in the body or script that the IFRAME is calling?!
Paul,
Only in MSIE 4 using the document.all object and the frames readyState property:
<IFRAME ID="myId" SRC="A.html"></IFRAME>
<FORM>
<INPUT TYPE="BUTTON" VALUE="Interrogate"
onClick="alert (document.all ('myId').ReadyState)">
</FORM>
Possible values include:
- uninitialized - The object is not initialized with data.
- loading - The object is currently loading its data.
- interactive - The object can be interacted with even though it is not fully loaded.
- complete - The control is completely loaded.
Although I've only managed to get it to return the value 4.
Follow-ups:
You are here: irt.org | BBS | Re: onLoad event for IFRAMES? [This BBS is closed]