Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q381 Is it possible to detect from outside a floating frame that the contents have loaded?

irt.org | Knowledge Base | JavaScript | Frame | Q381 [ previous next ]

Q381 Is it possible to detect from outside a floating frame that the contents have loaded?

Only in Internet Explorer 4 using the document.all object and the frames readyState property:

<iframe id="myId" src="floatingframe.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.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.