homepage Welcome to WebmasterWorld Guest from 54.161.192.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Disabling form auto-filling
andrew_m

10+ Year Member



 
Msg#: 10087 posted 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?

Thanx!

 

encyclo

WebmasterWorld Senior Member encyclo us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 10087 posted 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]>

The 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.

andrew_m

10+ Year Member



 
Msg#: 10087 posted 9:29 pm on Apr 19, 2005 (gmt 0)

Thanx, that's what I was looking for.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved