Very simple code. Why won't this work?
<html>
<head>
<script type="text/javascript">
window.onload = document.getEle mentById("thisT hing").style.ba ckground =
"red";
</script>
</head>
<body>
<div id="thisThing" style="height:4 0px; width:50px;
background:blue ">
</div>
</body>
</html>
<html>
<head>
<script type="text/javascript">
window.onload = document.getEle mentById("thisT hing").style.ba ckground =
"red";
</script>
</head>
<body>
<div id="thisThing" style="height:4 0px; width:50px;
background:blue ">
</div>
</body>
</html>
Comment