HTML: password to save Chrome

Firefox and IE will ask me to save the password. Why doesn't Chrome ask me? What do i need to change?

<body> <form action="" name="formlogin" id="formlogin"> Username: <input type="text" name="username" id="username" /> Password: <input type="password" name="password" id="password"/> <input type="submit" name="Submit" value="Submit" /> </form> </body> 
+4
source share
2 answers

Your form needs a destination. Just schedule an action. For example, create a file called "test.html", and then:

 <body> <form action="test.html" name="formlogin" id="formlogin"> Username: <input type="text" name="username" id="username" /> Password: <input type="password" name="password" id="password"/> <input type="submit" name="Submit" value="Submit" /> </form> </body> 
0
source

I believe this question has already been addressed here.

 <form name="formlogin" id="formlogin" action="" method="POST" onsubmit="handleFunction('action_login', document.getElementById('username').value, document.getElementById('password').value); return false;"> Username: <input name="username" id="username" size="16" maxlength="16" value="" type="text"> Password: <input name="password" id="password" size="16" maxlength="16" type="password"> <input type="submit" name="submit" value="Submit"> </form> <!-- login_form --> 
-1
source

Source: https://habr.com/ru/post/1469490/


All Articles