I'm trying to figure out why Mozilla (1.2 & 1.3) doesn't like the getElementByID() function for hidden fields. The following works in IE but not Mozilla (ie shows displays "bar" in the alert, whereas Mozilla complains that document.getElementById("foo") has no properties).
<html>
<head>
<title>test me</title>
</head>
<body>
<form name='fred'>
Hello
<input type='hidden' name='foo' value='bar' />
</form>
</body>
<script>
alert(document.getElementById("foo").value);
</script>
</head>