...

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



fleshgod
12-25-2003, 09:53 AM
Hey,
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

fredmv
12-25-2003, 11: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()
{
foo();
bar();
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum