Dudsmack
10-24-2003, 03:09 PM
The following works in IE but not in Mozilla/Netscape (gecko browsers). This all looks allright to me can someone tell me what I'm doing wrong?
.......
<head>
.......
<style>
<!--
#tim {position: absolute;
left: 10px;
top: 1px;
width: 140px;
height: 91px;
}
-->
</style>
</head>
...........
<body>
<div id="tim" style="width: 85; height: 36">
TEST TEST
</div>
<script language="Javascript">
document.tim.innerHTML = 'raw change';
tim.innerHTML = 'raw change';
</script></body>
Both those lines work in IE...just not gecko...why?
.......
<head>
.......
<style>
<!--
#tim {position: absolute;
left: 10px;
top: 1px;
width: 140px;
height: 91px;
}
-->
</style>
</head>
...........
<body>
<div id="tim" style="width: 85; height: 36">
TEST TEST
</div>
<script language="Javascript">
document.tim.innerHTML = 'raw change';
tim.innerHTML = 'raw change';
</script></body>
Both those lines work in IE...just not gecko...why?