I need to set the onload attribute for a newly popped-up window. The following code works for Firefox:
Check our jQuery. Particularly the document ready feature.
http://docs.jquery.com/Tutorials:How_jQuery_Works#Launching_Code_on_Document_Ready