Refer below if you want to call onload function.
<html>
<head>
<title></title>
<script type="text/javascript">
function callme()
{
alert("dotnetfunda");
}
</script>
</head>
<body onload="callme()">
</body>
</html>
The function is called when the body loads.
Thanks and Regards
Akiii