hie everyone,
Can anyone explain me what is body onload function in HTML ? and how can I use it while writing HTML script ?
hie everyone,
Can anyone explain me what is body onload function in HTML ? and how can I use it while writing HTML script ?
<body onLoad="javascript:myScript();">
and have a script that may parse current url, do some other processing
script should look like
<script language="javascript">
function myScript()
{
//all your processing
}
Body Onload Function is a function that is written in HTML under the body section with onload as an attribute. The javascript is written which parses the current url.
The browser triggers "onLoad" when the document is finished loading.
Bookmarks