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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is an element? IE description vs Netscape.

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
I am trying to retreive a collection of elements using

document.getElementsByName(name)

The problem is that netscape returns the elements while internet explorer does not. The elements I am trying to retreive are <div>

Is there some other way to retreive them in IE besides getElementById <i>I don't want to have to give each element a different id</i>
 
The reason I am asking this is because have some tab sheets that are not working properly in netscape. The tabsheet body is in div tags in which the display is set either to none or block depending on whether the user clicked on the tab. Unfortunately, I have form objects on the tabs and in netscape, form objects which are not displayed are not submitted.

I decided instead to use layers and have the active tab on the top layer. Maybe someone knows anther way to solve my netscape problem as well. Using layers will work but I need a way to get the tabsheets (getElementsByName)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top