Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

1234567890

user login
user

pa ss wo rd

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

I felt sorry for the clerk.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago