View Full Version : double "on loads" in body tag

12-25-2003, 08:53 AM
I would simply like to know when you have 2 java scripts that both need to have the "on load" tag in the <body> section how do you code it? i've tried doin git several ways and none have worked as of yet. Thanks in advance

12-25-2003, 10:26 AM
I would assume each one looks something like this:
<body onload="foo();">Or inside the JavaScript like this:
onload = foo;If you want two functions to execute when the document is done loading, you could use the first method like this:
<body onload="foo(); bar();">Or the second method like this:
onload = function()

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum