Select box (.value) failes in Netscape

Posted on 2002-07-10
Last Modified: 2010-05-18
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I have created a web page which works fine with IE. but not with Netscape.
Can somebody tell me why netscape always alerts Null ?


<select name="list1" onchange="alert(form.list1.value)">
<option value="position1">option 1</option>
<option value="position2">option 2</option>
Question by:chunky1
  • 4
LVL 33

Accepted Solution

knightEknight earned 50 total points
ID: 7144358
LVL 33

Expert Comment

ID: 7144360
that will work in IE and NS.

also, if you want the long way ( reference thru the form )

LVL 33

Expert Comment

ID: 7144369
and to answer your question ... for a SELECT object, this.value is a Microsoft Specific (non-standard) way to reference the selected value.  Netscape does not support the value property for the SELECT object itself ... but instead only for the OPTIONS in the SELECT.  IE supports both.
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

LVL 53

Expert Comment

ID: 7212821
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care


Author Comment

ID: 7213860
Sorry this question has been left. I forgot it!
LVL 33

Expert Comment

ID: 7214120
only a B?  what more did you want?

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HowTo set a global variable in javascript or jQuery 4 22
Do alert on select 6 15
How to create a table with buttons 3 23
Selected in an option list 13 21
This article discusses four methods for overlaying images in a container on a web page
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question