The onload event fires whenever an element finishes loading successfully. These onload event is
Initiate in the body elemnt after page loading into there client.
<html>
<head><title>STUDENTWEBSITE</title>
<script language="javascript">
function fnfn()
{
alert("welcom to studentwebsite page");
}
</script>
</head>
<body onload="fnfn()">
</body>
</html>
Initiate in the body elemnt after page loading into there client.
<html>
<head><title>STUDENTWEBSITE</title>
<script language="javascript">
function fnfn()
{
alert("welcom to studentwebsite page");
}
</script>
</head>
<body onload="fnfn()">
</body>
</html>
0 Comments