aspose file tools*
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
Author

Disabling autocomplete in Netscape 6.0

Prashant Vasha
Greenhorn

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
Prashant
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
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

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.
hth,
bear
[ March 05, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [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.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/autocomplete_ovr.asp
But im somewat sure i saw a js in mozilla.org to turn off that feature.

:roll:
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?
 
jQuery in Action, 2nd edition
 
subject: Disabling autocomplete in Netscape 6.0