NewUser
Posts: 6
|
Posted: 08/08/2014, 6:24 AM |
|
I want to disable the Remember Password Feature in browsers. I have given autocomplete=off in the form. But still iam not able to disable the feature. Pls let me know if there is any other option to disable the functionality.
Thanks
|
|
|
saseow
Posts: 744
|
Posted: 08/08/2014, 6:44 AM |
|
I thought that would have worked.
Try this as well:
document.getElementById('login_name or whatever you call it').setAttribute( 'autocomplete', 'off' );
|
|
|
NewUser
Posts: 6
|
Posted: 08/08/2014, 7:12 AM |
|
Thanks for the reply.. tried that too.. but still not working..
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 08/11/2014, 3:50 AM |
|
The form might have to be in a div ... this is what I use for clearing fields after a button posts variables...
<script>
document.getElementById("fieldname").innerHTML = "";
</script>
Try it as a standalone or maybe put it in a function and call it in the < body onload="functionname;">
and let us know how it goes.
_________________
Central Coast, NSW, Australia.
|
|
|