Find your next home with Luxist's "Estate of the Day"

Disabling autocomplete in forms

A tip from Chris Holland pointed me to his new article: Disable Autocomplete with Valid HTML. This deals with a problem for online banks: the well-meaning browser features for remembering passwords in forms can be a security risk when users access their accounts from public machines. So they need a way to disable autocomplete.

You can use an autocomplete="off" attribute to do this, and it works in Internet Explorer and Mozilla, but it isn't valid HTML. Chris presents some simple JavaScript which sets the attribute using the DOM, which will allow the HTML document to validate just fine.

Meanwhile, while this attribute makes the online banks happy, I've always been annoyed that my bank uses it on their site, since I don't use public terminals and I'd really like my home computer to remember the password. Chris linked to an article by Kenn Christ that talks about this issue at length, and mentions the Remember Password Bookmarklet by Jesse Ruderman that solves the problem for those of us who don't need this particular security blanket.

Reader Comments

(Page 1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: