summaryrefslogtreecommitdiff
path: root/test/js/event-onloadfrombody2.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/event-onloadfrombody2.html')
-rw-r--r--test/js/event-onloadfrombody2.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/js/event-onloadfrombody2.html b/test/js/event-onloadfrombody2.html
new file mode 100644
index 000000000..542e5ec23
--- /dev/null
+++ b/test/js/event-onloadfrombody2.html
@@ -0,0 +1,13 @@
+<html>
+<head>
+<title>alert based onload (from body IDL attribute) example</title>
+
+</head>
+
+<body>
+ <h1>Just look at the log</h1>
+ <script type="text/javascript">
+ document.body.onload = function() { alert("onload event from IDL attribute"); };
+ </script>
+</body>
+</html>