aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Delete cached information using JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Delete cached information using JavaScript " Watch "Delete cached information using JavaScript " New topic
Author

Delete cached information using JavaScript

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
I have a JSP page that has a form that holds few textboxes.
I want to delete the history information of these textboxes using JavaScript / HTML.
Presently if I write “A” in a textbox, all values entered previously and start with “A” will appears for the user selection.
I want to remove this cached information from JavaScript.
How to do this?


My blood is tested +ve for Java.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
JavaScript has nothing to do with that since that is a built in functionality of the browser. You can add an attribute to the element so it does not do the auto complete.

autocomplete="off"

Eric
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Originally posted by Eric Pascarello:
JavaScript has nothing to do with that since that is a built in functionality of the browser. You can add an attribute to the element so it does not do the auto complete.

autocomplete="off"

Eric


Hey Eric Thx!!
 
 
subject: Delete cached information using JavaScript