Firefox和IE要求我保存密码。 Chrome为什么不问我?我需要改变什么?
<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>
答案 0 :(得分:0)
您的表单需要目的地。只需指定操作即可。 例如,创建一个名为&#34; test.html&#34;的文件。然后:
<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>
答案 1 :(得分:-1)
我相信这个问题已经得到了解决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 -->