Code:
<script language="JavaScript">
<!--
function enterCheck(b){
if(b=="PASSWORD")
{
window.open("http://hhrlifestyle.org/hello.htm")
}
else alert("The password is not correct.");
}
//-->
</script>
<script language="JavaScript">
<!--
function enterCheck(b){
if(b=="PASSWORD")
{
window.open("http://hhrlifestyle.org/hello.htm")
}
else alert("The password is not correct.");
}
//-->
</script>
enterCheck(code1.value)
<input type="password" name="code1" id="foo" size=15>
<input type="button" value="ENTER" onclick="enterCheck(document.getElementById('foo').value)">
Comment