Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remember passowrd works in ff but not in ie and chrome

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.

like image 381
jzp74 Avatar asked May 23 '10 12:05

jzp74


People also ask

Why are my saved passwords not working in Chrome?

To check this, go to Settings > Autofill > Password Manager. If the Offer to save passwords option is switched off, toggle it on. Now, Chrome will offer you to save passwords when you log in to any website.

Why does Internet Explorer not remember my passwords?

Password saving is turned on by default in Internet Explorer, but here's how to turn it on or off: In Internet Explorer, select the Tools button , and then select Internet options. On the Content tab, under AutoComplete, select Settings. Select the User names and passwords on forms check box, and then select OK.

Why did Chrome just forget all my passwords?

It is called "Clear cookies and site data when you close all windows". That setting should be disabled if you wish to preserve logins and cookies between browser sessions.


1 Answers

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 -->
like image 77
Zarel Avatar answered Nov 15 '22 02:11

Zarel