I have a website where we use Javascript to submit a login form. In Firefox, it prompts the user to remember their password when they log in, but this is not the case on IE7.
After some research, it seems like the user is only requested in IE7 when the form is submitted using the Submit control. I created an html sample to prove that it is.
<html> <head> <title>test autocomplete</title> <script type="text/javascript"> function submitForm() { return document.forms[0].submit(); } </script> </head> <body> <form method="GET" action="test_autocomplete.html"> <input type="text" id="username" name="username"> <br> <input type="password" id="password" name="password"/> <br> <a href="javascript:submitForm();">Submit</a> <br> <input type="submit"/> </form> </body> </html>
The href link does not receive an invitation, but the submit button will be in IE7. Both work in Firefox.
I cannot make my site look the same with the submit button. Does anyone know how to get a confirmation prompt when sending via Javascript?
source share