• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Delete cached information using JavaScript

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic