Hawk
07-12-2002, 07:01 PM
<html>
<head>
<script>
function f_PasswordCheck(str_redirect)
{
var str_password = "Password";
var str_answer = document.frm.txt_Password.value;
if (str_answer==str_password)
{
//PURPOSE: Correct Answer
self.location.href=str_redirect;
}
}
</script>
</head>
<body>
<form name"frm">
<input type="password" name="txt_Password" value="">
<br>
<input type="button" name="cmd_Submit" value="Password Check" onClick="f_PasswordCheck('http://www.yahoo.com');">
</form>
</body>
</html>
<head>
<script>
function f_PasswordCheck(str_redirect)
{
var str_password = "Password";
var str_answer = document.frm.txt_Password.value;
if (str_answer==str_password)
{
//PURPOSE: Correct Answer
self.location.href=str_redirect;
}
}
</script>
</head>
<body>
<form name"frm">
<input type="password" name="txt_Password" value="">
<br>
<input type="button" name="cmd_Submit" value="Password Check" onClick="f_PasswordCheck('http://www.yahoo.com');">
</form>
</body>
</html>