'HTML: Chrome save password

Firefox and IE ask me to save the password. Why doesn't Chrome ask me? What do I have 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>


Solution 1:[1]

Your form needs a destination. Just assign 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>

Solution 2:[2]

I believe this question has already been adressed 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 -->

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David Refoua
Solution 2 Community