P
pantagruel
<html>
<head>
<style type="text/css">
#cssdata{color:blue;}
</style>
<script language="Javascript" defer="defer">
function test(){
alert(cssdata.style.color)
alert(test2());
}
function test2(){
x = document.getElementById('cssdata');
return x.style.color;
}
</script>
</head>
<body>
<span id="cssdata"> hello </span>
<div class="test" onclick="test()">testing 2
</div>
</body>
</html>
returns two empty alerts in IE version 6.0 xpsp2
I have also tried without a defer attribute of course.
cssRules is undefined.
<head>
<style type="text/css">
#cssdata{color:blue;}
</style>
<script language="Javascript" defer="defer">
function test(){
alert(cssdata.style.color)
alert(test2());
}
function test2(){
x = document.getElementById('cssdata');
return x.style.color;
}
</script>
</head>
<body>
<span id="cssdata"> hello </span>
<div class="test" onclick="test()">testing 2
</div>
</body>
</html>
returns two empty alerts in IE version 6.0 xpsp2
I have also tried without a defer attribute of course.
cssRules is undefined.