mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
Tests for body onload behaviour
This commit is contained in:
parent
c92726d3aa
commit
4137739b8a
10
test/js/event-onloadfrombody.html
Normal file
10
test/js/event-onloadfrombody.html
Normal file
@ -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>
|
13
test/js/event-onloadfrombody2.html
Normal file
13
test/js/event-onloadfrombody2.html
Normal file
@ -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>
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user