Hi,
I am trying to create my own login script and I am new to javascript.
I have created it in an external file and when I use it on the page I get the Object Expected error on line 13 char 1 could anyone help me please.
Here is a copy of the code
[CODE=javascript]<!--
function login(){
pass = password
user = username
log1 = document.securi ty.username.val ue
log2 = document.securi ty.password.val ue
if ( log1==user&&log 2==pass ){
window.location ="success.ht m";
}
else {
window.location ="fail.htm";
}
}
// -->[/CODE]
Thnx in advance
I am trying to create my own login script and I am new to javascript.
I have created it in an external file and when I use it on the page I get the Object Expected error on line 13 char 1 could anyone help me please.
Here is a copy of the code
[CODE=javascript]<!--
function login(){
pass = password
user = username
log1 = document.securi ty.username.val ue
log2 = document.securi ty.password.val ue
if ( log1==user&&log 2==pass ){
window.location ="success.ht m";
}
else {
window.location ="fail.htm";
}
}
// -->[/CODE]
Thnx in advance
Comment