Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable <form>-fields autocomplete in IE5+ 1

Status
Not open for further replies.

Boomerang

Programmer
Mar 30, 2001
766
NL
IE5+ has a feature that shows a dropdown list into a form-field with focus containing all the previously entered values.

A user can prevent this for his own use with the browser-options:

- Tools
- Internet Options...
- Choose the Content tab
- Click the button "AutoComplete..."
- Uncheck the Form-checkbox (and/or other checkboxes) under "Use AutoComplete for"
- Click OK
- Click OK/Aply


Webdesigners can avoid this feature with:

for single fields:
<form name=&quot;MyForm1&quot; >
<input type=&quot;text&quot; autocomplete=&quot;off&quot; name=&quot;Input1&quot;><br>
<input type=&quot;text&quot; name=&quot;Input2&quot;><br>
<input type=&quot;password&quot; autocomplete=&quot;off&quot; name=&quot;Pw1&quot; ><br>
<input type=&quot;submit&quot; name=&quot;SubmitButton1&quot; value=&quot;submit me&quot;>
</form>

for the complete form:
<form name=&quot;MyForm1&quot; autocomplete=&quot;off&quot;>
<input type=&quot;text&quot; name=&quot;Input1&quot;><br>
<input type=&quot;text&quot; name=&quot;Input2&quot;><br>
<input type=&quot;password&quot; name=&quot;Pw1&quot; ><br>
<input type=&quot;submit&quot; name=&quot;SubmitButton1&quot; value=&quot;submit me&quot;>
</form>

Some reasons to prevent this:
1) Username-fields
2) applications/environments where more users have the same computer (students)
3) credit card fields

Hope this helps someone,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
I didn't know it was that simple.
Nice to know you can learn so easy here.

By the way? Where is that star for?

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top