Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Is there a way to check within a page to see if an external js file has fully loaded?


Message #1 by "Alan Yang" <ayang@r...> on Wed, 17 Oct 2001 22:42:46
Defer works, but in IE it tells the browser if it should continue rendering
elements once the external script file is loaded.

Use: <script language = "myJS.js" defer> 

or 

create a conditional statement using:  readyState

if (document.all.ExternalScript.readyState == "unitialized")
{
	//don't load even't 
}
	else
{
	//load event
}



  Return to Index