Groups | Blog | Home
all groups > asp.net > november 2003 >

asp.net : execute javascript functions in the page load event



Bernie V
11/27/2003 11:04:24 PM
Hi group,

I have 2 js files where I have scrollfuntions.
Is it possible to execute the 2 funtions in the page load event ? What code
do i have to use to execute function1();function2() ?

At the moment I us the functions in the body onload tag but I have troubles
with it.

thx in advance,

Bernie V

--
http://www.djberniev.be

anon
11/28/2003 2:08:31 AM
also checkout - Page.RegisterStartupScript

[quoted text, click to view]
other two functions inside that. Then Put the function3()
on the bodyonLoad event.
[quoted text, click to view]
Bhaskardeep Khaund
11/28/2003 4:01:32 AM
Hi,

You can create a function, say function3(); and put the other two =
functions inside that. Then Put the function3() on the bodyonLoad event.
Like

function1(){
....
}
function2(){
...
}
function3(){
function1();
function2();
}

then

<body onLoad=3D"javascript:function3()">

Hope this helps....

Regards,
Bernie V
11/29/2003 8:00:40 PM
thx for the replies

I'll try it.

gr

Bernie V

--
http://www.djberniev.be
"Bernie V" <bernd.vantyghem@pandoradotbe> schreef in bericht
news:eF8RtJTtDHA.3744@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button