when an object is loaded The onload attribute fires.
whenever a page is loaded, it executes a javascript.
The onload attribute can also be used with cookies Example
<!DOCTYPE html>
<html>
<head>
<script>
function pc() {
alert("Page is loaded");
}
</script>
</head>
<body onload="pc()">
<h1>Evon Technologies</h1>
</body>
</html>
0 Comment(s)