View Full Version : <body onload=..............


go_deacs
10-09-2005, 07:06 PM
ok so i have a script that looks somthing like this

<body onLoad="window.focus();init();" onResize="document.location.href=document.location.href;" bgColor="#000000" text="#FFFFFF" onUnload="halt();" link="#FFFF00" vlink="#00FF00">


now then i also want to do somthing that would also involve a body onload script.......

<body onLoad="initVars()">

that looks like that

can i combine the two of them in some way so they would look like

<body onLoad="window.focus();init();" onResize="document.location.href=document.location.href;" bgColor="#000000" text="#FFFFFF" onUnload="halt();" link="#FFFF00" vlink="#00FF00" onLoad="initVars()">


would that work?or do i need somthing else

kittycat
10-09-2005, 07:25 PM
You can't have 2 separate onloads... maybe try this?
onLoad="window.focus();init();initVars();"

go_deacs
10-09-2005, 07:28 PM
that actually stops both things from happening....hmmm