jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes Disabling autocomplete in Netscape 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling autocomplete in Netscape 6.0" Watch "Disabling autocomplete in Netscape 6.0" New topic

Disabling autocomplete in Netscape 6.0

Prashant Vasha

Joined: Mar 05, 2003
Posts: 1
My application needs to disable the auto complete functionality of the browser, i.e., even though the browser's auto complete functionality is on, the browser should not be able to remember the user name and password of my site.
how do i accomplish the same using java script.
i have set the autocomplete property of the form tag in html to "off" and the same works in IE, but it does not work in netscape.
Any help is appreciated.
Thanx & Regards
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
<form> elemnet has an attribute " autocomplete=off"
So u need to write like this
<form name= "blah blah" method="post" autocomplete="off">
hope that helps u
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

The "autocomplete" attribute to the form tag is not part of the HTML 4 or of the XHTML 1 standards. So it is possible that it is an IE-only extension, and as such would not work in any other browser.
As to whether there is a corresponding Netscape-only extension, I do not know.
[ March 05, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
oh yea that is true i didnt read the post completely. SORRY FOR THAT.AutoComplete is a feature of IE. Bear is rt.
But im somewat sure i saw a js in mozilla.org to turn off that feature.

sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
NS doesnt have that feature of "autocomplete" for forms so why we need something to disable that rt?
I agree. Here's the link: http://aspose.com/file-tools
subject: Disabling autocomplete in Netscape 6.0
It's not a secret anymore!