This is just what I suddenly thought of when I was learning javascript. I tried it today and it was successful. This is a test: This case cannot be reflected, because it is a direct login. I did not add the "Remember password option", but some websites do not use cookies, in addition, you can enter your password directly in the password box, and you need to click "login" each time. This method is to put your password in the password input box according to the second method. Method 1:
<Html>
If you do not have the intention to open a website when playing a computer, the password is remembered. If you want to know what the password is, you can use the "Review element" to find out the name value of the account and password. If not, you can add one by yourself. Check the name of the form. If there is no name value, add it by yourself. Add onclick = "a ()" after the code of the "Submit" button and write
<Script type = text/javascript> function a () {var name = form1.user. value; var pwd = form1.lname. value; alert ("account :(" + name + ") password :(" + pwd + ")"); form1.user. focus () ;}</script>
The a user lname form1 in the Code is modified according to the situation. This section is used to obtain the user and lanme values in the form1 label and display them in alert mode. Method 2: It is similar to the first one, but the called function is different.
<Html>
Use document. getElementById to retrieve the user and lname values, which are displayed by alert. Method 3: the simplest method is to directly modify the password text in <input id = "pwd1" type = "password" name = "lname"/> in "review element .... Some people will feel like I have spoken a bunch of nonsense .... I just want to say, "I mean a bunch of nonsense ~"...