Remember that 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 someone tell me why? Here is 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 checked my settings in Chrome and IE.

+6
html firefox google-chrome internet-explorer passwords
source share
3 answers

You might want to use onsubmit instead of onclick for forms ... I'm not sure if pressing Enter in the text box will trigger onclick in 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 --> 
+1
source share

Should work like the right code. Check your browser settings?

0
source share

In your html CSS, changing the body overflow-x = hidden until overflow = hidden

-one
source share

All Articles