mozilla gives me a headache

wxdqz

New Member
the following code works alright on IE but mozilla gives me the following error:

Error: testhide is not defined

help. Anyone?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>

<script language="JavaScript">
function test() {
testhide.style.display="none";
}
</script>
</head>

<body onload="test();">

<span id="testhide">Testing</span>


</body>
</html>
 
Back
Top