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!

It Works In IE but not in Netscape 1

Status
Not open for further replies.

FRANDAZZO

Programmer
Nov 29, 2000
60
US
Hello,
I don't understand why this works in IE and not in Netscape. The error I keep getting is:
"document.all has no properties." Here is the code:

function OnLoad()
{

var el = document.all.tags("select").item(0);

if (el != null)
{
for (i=0; i < el.options.length; i++)
{
alert(&quot;Option &quot; + i + &quot; is &quot; + el.options(i).text);
}
}

}

Hope that somebody can help...

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top