I have a .js script to allow a v.simple password section to a website it consists of a html from and a .js file it works well however if you press the enter key not the submit button it doesnt work any1 have any idea why please!!!!
<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="test" && password=="test") { top.location="http://www.test.co.uk/testindex.html"; done=1; }
if (done==0) { alert("Sorry, Your Log-in is Invalid. Please Try Again."); }
}
// End -->
Bookmarks