faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

Is there a way to call a function when everything but the pics load on a page? I don't want to wait

Apr 9th, 2008 20:26
ha mo, Dave Clark, D Colpi,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     Sure, just put a script section at the end of the BODY section of 
your page which executes the desired function:

<script type="text/javascript">
<!--//
myFunction();
//-->
</script>

     Keep in mind, though, that a few DOM errors can occur at this 
point because the document has not been completely rendered, yet.

Take care,

Dave Clark
www.DaveClarkConsulting.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com