topical media & game development
#javascript-code-14-domReady.htm / htm
<html>
<head>
<title>Testing DOM Loading</title>
<script type=”text/javascript” src=”domready.js”></script>
<script type=”text/javascript”>
domReady(function() {
alert( “The DOM is loaded!” );
tag(“h1”)[0].style.border = “4px solid black”;
});
</script>
</head>
<body>
<h1>Testing DOM Loading</h1>
<!—Lots of HTML goes here -->
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.