Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

div name attribute ignored in netscape?

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
I have a bunch of div tabs that are named. In internet explorer, I can view their names with alert(el.name); In netscape, however, the names is always undefined. Anyway have any ideas?
 
<div id=&quot;id412&quot; menu=&quot;This is div 'id412'&quot;></div>
To alert the &quot;menu&quot; value in IE, do this:

alert(id412.menu);

in NN and IE abovew version 4.0:

alert(getElementById('id412').menu);

Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
NN4.x can't do this. But Mozilla/N6 does. Use ristmo2001's example to do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top