diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/js/event-onloadfrombody.html | 10 | ||||
-rw-r--r-- | test/js/event-onloadfrombody2.html | 13 | ||||
-rw-r--r-- | test/js/index.html | 1 |
3 files changed, 24 insertions, 0 deletions
diff --git a/test/js/event-onloadfrombody.html b/test/js/event-onloadfrombody.html new file mode 100644 index 000000000..be491e6dd --- /dev/null +++ b/test/js/event-onloadfrombody.html @@ -0,0 +1,10 @@ +<html> +<head> +<title>alert based onload (from body) example</title> + +</head> + +<body onload="alert('Running onload')"> +<h1>Just look at the log</h1> +</body> +</html> 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> diff --git a/test/js/index.html b/test/js/index.html index a1bc4c4de..f5420ed3c 100644 --- a/test/js/index.html +++ b/test/js/index.html @@ -80,6 +80,7 @@ <h2>Dom events</h2> <ul> <li><a href="event-onload.html">window.onload</a></li> +<li><a href="event-onloadfrombody.html">body.onload</a></li> <li><a href="event-onclick.html">button.onclick</a></li> </ul> |