How can I check if the value is something in specific and then make it “execute/launch” a “website”? via /r/learnprogramming


How can I check if the value is something in specific and then make it “execute/launch” a “website”?

Im trying to do a login form and I'm stuck figuring out how to make it so it sends me to "file:///Users/castrejonacevesaxel/Documents/loggedin.html?" by checking if both the username and password are correct and also is the password once I click on the button.

<!DOCTYPE html> <html> <body> <form action="file:///Users/castrejonacevesaxel/Documents/loggedin.html?"> 
Username
Password
Entrar var Username = document.getElementById("Username"); if (Username === "Axel"){ //??? }; //x2 (for the password)
</div> </form> </body> </html>

Submitted July 13, 2017 at 07:36PM by MexiAxel
via reddit http://ift.tt/2viwycN

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s