I've noticed that this topic comes up frequently at the forums, so I wrote this little article. (this is just a rough draft so far)
It is common for scripts to need to be initialized when the page is first loaded by the browser. Here are three different ways a function can 'listen' for the window onload event.
Here are a few things to look for when using different scripts in the same page.
In the above there are three initialization tasks that need to be accomplished when the document first loads (the window.onload event). The following is a typical solution to the above conflict.
The solution was developed by taking the following steps.