Dr. Web
06-21-2001, 03:53 PM
I have a password pop-up verification. If the user gets the password correct, the main window (a form) is submitted. If not-a javascript alert, then another chance to enter the password. I want the pop-up to remain on top at all times... even if the user clicks back on the main form.
any ideas?
Heres the pop up.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script langiage=javascript>
function check(){
entry=document.form1.text1.value;
valid=document.form1.passVerify.value;
if (entry=="" || entry=="undefined"){
alert("please type in your password.");
document.form1.text1.focus();
}else if (entry != valid){
alert("Your password does not match.\nPlease re-enter your passowrd.");
document.form1.text1.focus();
}else{}
}
</script>
</head>
<body bgcolor=#cccccc>
<table width=150 height=75 border=0 cellpadding=5 cellspacing=0 bgcolor=#c0c0df>
<tr>
<td>Authenticate Password</td>
</tr>
<tr>
<td>
<form name=form1>
<input type=password name=text1></td>
</tr>
<tr>
<td> <input type=button name=submit value=submit onClick="check();" > <input type=reset value=reset name=reset></td>
</tr>
</table>
<input type=hidden name=passVerify value=pw>
</form>
</body>
</html>
any ideas?
Heres the pop up.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script langiage=javascript>
function check(){
entry=document.form1.text1.value;
valid=document.form1.passVerify.value;
if (entry=="" || entry=="undefined"){
alert("please type in your password.");
document.form1.text1.focus();
}else if (entry != valid){
alert("Your password does not match.\nPlease re-enter your passowrd.");
document.form1.text1.focus();
}else{}
}
</script>
</head>
<body bgcolor=#cccccc>
<table width=150 height=75 border=0 cellpadding=5 cellspacing=0 bgcolor=#c0c0df>
<tr>
<td>Authenticate Password</td>
</tr>
<tr>
<td>
<form name=form1>
<input type=password name=text1></td>
</tr>
<tr>
<td> <input type=button name=submit value=submit onClick="check();" > <input type=reset value=reset name=reset></td>
</tr>
</table>
<input type=hidden name=passVerify value=pw>
</form>
</body>
</html>