S
Steven Daedelus
Hey all,
Here's an oddity. Run this through Mozilla:
<div id="myDiv" name="nippleClamps" style="display: none">Test</div>
<script language="javascript">
at = "";
a = document.getElementById('myDiv').attributes;
for (i=0; i<a.length; i++) {
at = at + a.name + " : " + a.value + "\n";
}
alert(at);
</script>
Mozilla will show you a list of attributes demonstrating that the name
of the DIV is "nippleClamps." However, if you add this line:
alert(document.getElementById('myDiv').name);
It won't return the name. What's up with that?
stedae
Here's an oddity. Run this through Mozilla:
<div id="myDiv" name="nippleClamps" style="display: none">Test</div>
<script language="javascript">
at = "";
a = document.getElementById('myDiv').attributes;
for (i=0; i<a.length; i++) {
at = at + a.name + " : " + a.value + "\n";
}
alert(at);
</script>
Mozilla will show you a list of attributes demonstrating that the name
of the DIV is "nippleClamps." However, if you add this line:
alert(document.getElementById('myDiv').name);
It won't return the name. What's up with that?
stedae