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

Page History: Disabling Autocomplete - HTML5

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: Wed, Apr 18, 2012, 8:54 AM


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>

. . .
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.