| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|Disabling form auto-filling|
| 7:09 pm on Apr 19, 2005 (gmt 0)|
Is it possible to disable auto-filling forms by including some hints in the HTML? Can't find any standard way to do that...
Will having a unique for each session "action" attribute in the <FORM> element do the trick?
| 7:16 pm on Apr 19, 2005 (gmt 0)|
You can do it on a form-level or on individual input elements:
To block auto-fill for the whole form:
<form action="" [b]autocomplete="off"[/b]>
or for one element:
<input type="text" name="login" [b]autocomplete="off"[/b]>
autocomplete="off" attribute is supported in IE, Safari/Konqueror (I think) and Mozilla/Firefox, but not in Opera (a deliberate policy on their part). It does not, however, validate.
| 9:29 pm on Apr 19, 2005 (gmt 0)|
Thanx, that's what I was looking for.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved