Google
 
Web Ben's Questions and Answers

Tuesday, September 06, 2005

Disable Form Auto Complete

Someone asked me if it was possible to disable HTML form auto complete and if so how it is done.

It is possible to disable HTML form auto complete, and it's very easy to do with no need for any complex javascript.

Simply change:

<form name="myForm">...</form>


To:

<form name="myForm" autocomplete="off">...</form>


You can also set autocomplete using javascript:

document.myForm.setAttribute('autocomplete','off')


Amazon has a huge number of Javascript books available here. I hope that that answers your question, if you have any comments please let me know and if you have any other questions which you'd like me to answer for free please send them to Ben Dash at ben.dash@gmail.com

1 Comments:

Anonymous Anonymous said...

thanks for the information

5:41 AM  

Post a Comment

<< Home