Home > front end >  Help!!!!! JavaScript
Help!!!!! JavaScript

Time:10-07

JavaScript implementation account password authentication, dl () account id login button binding events as useful password id for mm


Account: & lt; Input type="text" id="useful" size="30" & gt;



Password: & lt; Input type="password" id="mm" size="30" & gt;


The following is a JavaScript code

The function dl () {
Var aa=document. GetElementById (" useful "). The value;
Var bb=document. GetElementById (" mm "). The value;
{if (aa=="mzx161218")

{if (bb=="123456")

Window. The location. Href="file:///E:/junior set 2/report/11111/class/registered. HTML";

CodePudding user response:

Good ah why not just now?

CodePudding user response:

I just zha not successful?

CodePudding user response:

Only way, you fill in the trigger events not

CodePudding user response:

On the front end, it is best to your file name in English, you change the path for the English have a try

CodePudding user response:

See you write jump path, personal feelings into a relative path is better, if you login page with the registration page in the same directory window. You can write the location. The href="https://bbs.csdn.net/topics/. HTML";
  • Related