Click to See Complete Forum and Search --> : Load in <dody> tag


pgtek
11-13-2003, 10:26 AM
Hi
I'm new to JavaScript
I have 2 load in my <body> tag
the first get loaded but not the second.
if i switch the order the other load but not the second
I there a way to have 2 load in the body sectiopn or only 1 has to be there?

thanks

pgtek

pyro
11-13-2003, 10:28 AM
Do you mean running two functions onload? If so, try something like this:

[code]<body onload="functionOne(); functionTwo();">

pgtek
11-13-2003, 10:33 AM
Hi
Yes
I have 2 function on load
I willy it
and Thanks a million

pgtek:D

pyro
11-13-2003, 10:34 AM
You bet... :)

pgtek
11-13-2003, 11:10 AM
Hi
An other question
i have web page tha has a table in it
the table width is set 100%

how can a set it to ajust the the size browser the user is using
right now

if i change my setting to 1026
it fine
but when change to 800 it scrool

Can this be don in Javascript

thanks

pgtek
11-13-2003, 04:13 PM
Hi
i tried the code you sent me for 2 load it's not working
only one runs

<BODY onLoad="scrollnews(0)";"popupWin()";>

pgtek

pyro
11-13-2003, 05:28 PM
You have a little bit of a quotes problem. Try this:

<BODY onLoad="scrollnews(0); popupWin()";>