Question
can anyone help me fix this webpage and make it work ? by html and js i can log in to the webpage by usernameuser
can anyone help me fix this webpage and make it work ? by html and js
i can log in to the webpage by username"user 1 "password "12345678"
i have write code like this
main .html:
*{padding: 0;margin: 0}
table{margin:0 auto;margin-top: 200px}
1:js
function check() {
var user_name=form1.user.value;
var user_pwd=form1.pwd.value;
if((user_name=="")||(user_name==null)){
alert("enter username");
form1.user.focus();/
return;
}
else if((user_name=="user1")|){
alert("enter password");
form1.user.focus();/
return;
}
else if((user_pwd=="")||(user_pwd==null))
alert("enter password ");
form1.pwd.focus();
return;}
else if{((user_pwd=="12345678")!
form1.submit();
window.open( 21.html");
}
}
i want to make to show a login page ,and i can enter password and username to log in ,i log in ,will gho to 2 .html ,and the heml webpage will show "you have successfully log in .
if not ,will show "wong paword or wrong username .'can anyone help fix this code ?
ty
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started