Breaking News
yeni film izle hd film seyret film izle

OnLoad In Java Script

This event occurs when the web page gets loaded, this event should be typed in body tag of document.
 
Example:
 
<html>

<head>

<title>events </title>

</head>

<body bgcolor=green text=”white” onload=”wel()”>

<marquee direction=up behavior=alternate scrollamount=5 size=0>

<h1 align=center> Welcome </h1>

</marquee>

<script>

function wel()

{

document.bgColor=’yellow’

document.fgColor=’blue’

}

</script>

</body>

</html>

Check Also

Functions Returning Values In Java Script

Function is a set of statements recognized by a name and can be used as …