Answer to Question #28178 in Programming & Computer Science for Mokgatla

Question #28178
function log()

{

if(document.getElementById('uid').value.length=="admin" && document.getElementById('pwd').value.length=="Admin"){

alert("Successfully logged in ");enter code here
window.open("customer.html");
}
else if(document.getElementById('uid').value.length=="manager" && document.getElementById('pwd').value.length=="manager"){

alert("Successfully logged in ");
window.open("customer.html");
}
else if(document.getElementById('uid').value.length=="driver" && document.getElementById('pwd').value.length=="driver"){

alert("Successfully logged in");
window.open("customer.html");
}
else (document.getElementById('uid').value.length=="customer" && document.getElementById('pwd').value.length=="customer"){
}

{
alert("successfully logged in");
window.open("customer.html");
}

}
User ID :
Password:
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS