Web Designer? Design and market your own professional website with easy-to-use tools.
Compare, review and buy thousands of Laptops , software products at CheckCost.co.uk
Your Text Link Here! and your text description here!
The onload event is usually placed within the openning <body> tag.
The javascript code below shows you how to place the onload event in the <body> tag to cause an alert box to appear when a page finishes loading.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>WebDevelopmentTutorials.com</title>
<script type="text/javascript" language="javascript">
function on_load()
{
alert("This alert box was triggered by an onload event.");
}
</script>
</head>
<body onload="on_load()">
</body>
</html>