Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Password type Property

Password type Property

Password Object Reference Password Object


Definition and Usage

The type attribute returns the type of the form element.

For a password field, this property is always "password".

Syntax

passwordObject.type


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type property.


Example

Example

The following example returns the form element type of the password field:

Runoob Tutorial(runoob.com)

Password:

Try it »


Password Object Reference Password Object