Move setTimeout to onload to make sure it doesn't fire too early.

This commit is contained in:
jruderman@hmc.edu 2007-12-19 17:29:26 -08:00
parent 2553fb5ca8
commit 452232cbcf

View File

@ -15,14 +15,12 @@ function boom() {
document.documentElement.removeAttribute("class");
}
setTimeout(boom, 30);
]]></script>
</head>
<body>
<body onload="setTimeout(boom, 30);">
<div style="float: right;" id="div">Floated div</div>