Friday, September 18, 2009

Turnoff autocomplete or disable cache in HTML pages

In some pages(like creditcard payment page or any other authentication page) we have to avoid the drop down which was appeared below the input text elements. This is active by default in a web browser.

To avoid the autocomplete of input text elements add autocomplete="off" attribute to your input element.
For example..



<input id="creditcardnumber" name="creditcardnumber" autocomplete="off" type="text">


Labels: , , ,

posted by adityachandra @ 1:56 PM,


0 Comments:

Post a Comment