Hi,
I'm really confused what's going on. alert(buffer1) displays proper value when I run this page on IE. But it displays NULL when I run the page in Netscape. What could be the problem ?
<%@ Language=VBScript %>
<script language="Javascript">
function displayData() {
var buffer1;
buffer1 = document.form1.links.value;
alert(buffer1);
}
</script>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form name=form1 action=Redirect.asp method=post>
<SELECT NAME="links" id="links" SIZE=1 style="width=300px" onchange=displayData()>
<option value="33"> One
<option value="44"> Two
</SELECT>
</form>
</BODY>
</HTML>
I'm really confused what's going on. alert(buffer1) displays proper value when I run this page on IE. But it displays NULL when I run the page in Netscape. What could be the problem ?
<%@ Language=VBScript %>
<script language="Javascript">
function displayData() {
var buffer1;
buffer1 = document.form1.links.value;
alert(buffer1);
}
</script>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form name=form1 action=Redirect.asp method=post>
<SELECT NAME="links" id="links" SIZE=1 style="width=300px" onchange=displayData()>
<option value="33"> One
<option value="44"> Two
</SELECT>
</form>
</BODY>
</HTML>