HTML ONLOAD IN BODY TAG

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

20-Feb-11 19:50
I want to call a javascript function in my html <BODY> tag during the loading of my web page. Is this done like this:

<html>
<body onload=somefunction....

or is it like this:

<html>
<body onload="somefunction....

or is it done some other way?
21-Feb-11 23:20
Hi xarzu,

Use this:


<body onload="somefunction()"> ... </body>


Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated