I am tring to get the following script to return the value of the listbox's URL once the password has been validated. For some reason it will not return the URL. Please Help!!!
<SCRIPT language="JavaScript">
<!--hide
function password()
{
var password;
var pass1="pass1";
var pass2="pass2";
password=prompt('Please enter you password below to authenticate entry.',' ');
if (password == pass1 || password == pass2 )
{return;}
else
{
alert('The password you have entered is invalid!');
}
}
//-->
</SCRIPT>
<!---- the form ---->
<form name="form2" method="post" action="">
<select name="select" onChange="password()">
<option>select</option>
<option value="test1.asp">test1</option>
<option value="test2.asp">test2</option>
</select>
</form>
<SCRIPT language="JavaScript">
<!--hide
function password()
{
var password;
var pass1="pass1";
var pass2="pass2";
password=prompt('Please enter you password below to authenticate entry.',' ');
if (password == pass1 || password == pass2 )
{return;}
else
{
alert('The password you have entered is invalid!');
}
}
//-->
</SCRIPT>
<!---- the form ---->
<form name="form2" method="post" action="">
<select name="select" onChange="password()">
<option>select</option>
<option value="test1.asp">test1</option>
<option value="test2.asp">test2</option>
</select>
</form>