Software

General discussion

Locked

Internet Explorer Scripting Error

By bldsm ·
Could someone please tell me why this script will not allow users with IE to login to my secure web site, but it does let Mozilla users login.

What is missing from the script to fix my problem.

Thanks
Bruce

<SCRIPT LANGUAGE="JavaScript">


<!-- 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=="bruce" && password=="smokey") { window.location="http://www.kcp.wellington.net.nz/secure/index.html"; done=1; }
if (username=="kxcp" && password=="october") { window.location="http://www.kcp.wellington.net.nz/secure/index.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums