remember passowrd works in ff but not in ie and ch

2020-04-05 09:05发布

It seems that my html login form supports "remember password" in ff but not in ie and chrome. Can anybody tell me why? Here's the code:

<form name="login_form" id="login_form" action="" method="POST">
    <div class="login_line">name<input name="user_name" id="user_name_id" size="16" maxlength="16" value="" type="text"></div>
    <div class="login_line">password<input name="password" id="password_id" size="16" maxlength="16" type="password"></div>
    <div class="login_line">&nbsp;<input class="icon icon_accept" value="login" onclick="javascript:handleFunction('action_login', document.getElementById('user_name_id').value, document.getElementById('password_id').value); return false;" type="submit"></div>
</form> <!-- login_form -->

I've checked my settings in Chrome and IE.

3条回答
来,给爷笑一个
2楼-- · 2020-04-05 09:27

In your CSS html,body change overflow-x = hidden to just overflow = hidden

查看更多
ら.Afraid
3楼-- · 2020-04-05 09:29

Should work as the code is correct. Check browser settings?

查看更多
smile是对你的礼貌
4楼-- · 2020-04-05 09:51

You might want to use onsubmit instead of onclick for forms... I'm not sure if pressing Enter on a textbox will fire onclick on all browsers.

<form name="login_form" id="login_form" action="" method="POST" onsubmit="handleFunction('action_login', document.getElementById('user_name_id').value, document.getElementById('password_id').value); return false;">
    <div class="login_line">name<input name="user_name" id="user_name_id" size="16" maxlength="16" value="" type="text"></div>
    <div class="login_line">password<input name="password" id="password_id" size="16" maxlength="16" type="password"></div>
    <div class="login_line">&nbsp;<input class="icon icon_accept" value="login" type="submit"></div>
</form> <!-- login_form -->
查看更多
登录 后发表回答