Web Hosting Offers
See the new scripts recently added to Dynamic Drive. Click here.
Original, practical CSS codes and examples such as CSS menus for your site.
    Search code samples  
 
  Keyword
 
 
 
   
 
 
  Code Samples
 
ASP
CSS
Dhtml
Html
Javascript
PHP
 
   
     LOGIN HERE  
 
Username
Password
Forgot Password
Verify Signup
 
 
 

Javascript >> Document

How do I let all my scripts pre-load before they are executed?

Visitor Ratings (0) :

Description
Set a variable boolean flag to false at the top of your page, and then use the BODY tags onLoad event handler to set it to true, then when accessing your JavaScript functions you can check to see if the flag is true before continuing:
Code
Select All
 Rate this Resource