Click to See Complete Forum and Search --> : <Body> onload Tag


caterpillarsg
12-31-2002, 01:21 AM
Anyone here noe how to properly combine 2 script together in a body tag? This are the following script that i want to combine.

<BODY onLoad="start()">
<BODY onLoad="scrollit(100)">

do i do this? <BODY onLoad="start()" onLoad="scrollit(100)">

luc
12-31-2002, 04:04 AM
Why don't you put these 2 functioncall's into another function and place the new function into the onload?

function load()
{
start()
strollit(100)
}

...

...onload='load()'...

I hope this is what you meam?

Charles
12-31-2002, 04:48 AM
<body onload="start(); strollit(100)">

or


<script type="text/javascript">
<!--
window.onload = function () {start(); strollit(100)}
// -->
</script>