summaryrefslogtreecommitdiff
path: root/test/js/event-onloadfrombody2.html
blob: 30206a95a4e538817db9e18dc8fefbe93e278d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<title>alert based onload (from body IDL attribute) example</title>

</head>

<body>
  <h1>Just look at the log</h1>
  <noscript><p>Javascript is disabled</p></noscript>
  <script type="text/javascript">
    document.body.onload = function() { alert("onload event from IDL attribute"); };
  </script>
</body>
</html>