B
Bruce
When I do this:
<input id="someName" type="text">
<script type="text/javascript">
alert(someName.nodeName);
</script>
Both IE6 and Firefox alert("INPUT"). Why isn't "someName" undefined?
Why am I not required to do something like this:
getElementById("someName").nodeName;
<input id="someName" type="text">
<script type="text/javascript">
alert(someName.nodeName);
</script>
Both IE6 and Firefox alert("INPUT"). Why isn't "someName" undefined?
Why am I not required to do something like this:
getElementById("someName").nodeName;