Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Disabling Autocomplete - HTML5

RSS
Modified on Wed, Apr 18, 2012, 8:55 AM by Administrator Categorized as HTML and CSS

Overview

Some browsers have an "autocomplete" feature, where field values are suggested when the user starts typing. You may want to disable this feature, for example, for security reasons. This article explains how.

Solution

New to HTML5 is the autocomplete attribute, which has a value of either on or off. It can be used on either a form tag or an input tag, as follows.

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

<form>

. . .
<input autocomplete="off" />
. . .
</form>

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.