Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe ready state in FireFox? 1

Status
Not open for further replies.

xpblueScreenOfDeath

Programmer
Joined
Sep 1, 2004
Messages
87
How to check the readyState of an Iframe document in FireFox. I tried the follow and it works in IE, but not FireFox:
Code:
var doc = document.getElementById("iframeid");
if (doc.readyState == "complete")
   dosomething();

When I message out the readyState in FireFox, it says "undefined";

I also tried:
Code:
doc.document.readyState

In FireFox it gave me the error that doc.document has no properties. I'm using FireFox 1.0.
 

AFAIK, readyState is an IE only property, and so will not work in Firefox.

Dan



The answers you get are only as good as the information you give!

 

So... you might be better off using the onload event of the body:

Code:
<body onload="myLoadedFunc();">

Dan


The answers you get are only as good as the information you give!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top