Results 1 to 3 of 3
Thread: Load Javascript Last...
-
11-26-2006, 06:23 PM #1Junior Guru Wannabe
- Join Date
- Mar 2005
- Posts
- 94
Load Javascript Last...
Hello
Im 99% sure that a few weeks ago I saw an easy way to make your javascript load after the rest of the page has loaded... however I didnt bookmark the page.
If anyone knows how to do this then please let me know
-
11-26-2006, 07:41 PM #2WHT Addict
- Join Date
- Aug 2002
- Location
- Canada!
- Posts
- 161
What I usually do is put the javascript at the bottom of all the content and then somehow manipulate it to show up wherever I wanted it before. It works with DIV/CSS layouts pretty well.
I don't know of any other way to get it to load last unfortunately.
-
11-27-2006, 01:51 AM #3Newbie
- Join Date
- Jul 2006
- Posts
- 19
you can use javascript onload event, like this:
<body onload="yourFunction()">
or put the following code somewhere in the page:
window.onload=yourFunction()
it should do the trick.