Name

password — NN 2 IE 3 DOM 1

Synopsis

The password object is a form control generated with an INPUT element whose TYPE attribute is set to "password". This object is similar to the text object, except that the characters typed into the text box by the user are converted to asterisk or bullet symbols for privacy.

HTML Equivalent

<INPUT TYPE="password">

Object Model Reference

NN

[window.]document. formName .elementName

[window.]document.forms[i].elements[i]

IE

[window.]document. formName .elementName

[window.]document.forms[i].elements[i]

[window.]document.all. elementID

Properties

accessKey

form

offsetHeight

outerText

style

className

id

offsetLeft

parentElement

tabIndex

dataFld

isTextEdit

offsetParent

parentTextEdit

tagName

dataSrc

lang

offsetTop

readOnly

title

defaultValue

language

offsetWidth

size

type

disabled

maxLength

outerHTML

sourceIndex

value

document

name

   

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

handleEvent( )

scrollIntoView( )

contains( )

insertAdjacentHTML( )

select( )

focus( )

insertAdjacentText( )

setAttribute( )

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onblur

2

3

n/a

onchange

2

3

n/a

onclick

n/a

4

n/a

ondblclick

n/a

4

n/a

onfocus

2

3

n/a

onhelp

n/a

4

n/a

onkeydown

4

4

n/a

onkeypress

4

4

n/a

onkeyup

4

4

n/a

onmousedown ...

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.