netsurf/test/js/event-onloadfrombody2.html

15 lines
331 B
HTML
Raw Normal View History

2015-11-22 19:53:22 +03:00
<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>
2015-11-22 19:53:22 +03:00
<script type="text/javascript">
document.body.onload = function() { alert("onload event from IDL attribute"); };
</script>
</body>
</html>