Name

reset — NN 2 IE 3 DOM 1

Synopsis

The reset object is a form control generated with an INPUT element whose TYPE attribute is set to reset. This element is similar to the button object. No script action is necessary for the reset object to do its job of restoring form controls to their default settings.

HTML Equivalent

<INPUT TYPE="reset">

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

isTextEdit

offsetLeft

outerText

tabIndex

className

lang

offsetParent

parentElement

tagName

disabled

language

offsetTop

parentTextEdit

title

document

name

offsetWidth

sourceIndex

type

form

offsetHeight

outerHTML

style

value

id

    

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

handleEvent( )

scrollIntoView( )

contains( )

insertAdjacentHTML( )

setAttribute( )

focus( )

insertAdjacentText( )

 

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onblur

n/a

4

n/a

onclick

3

4

n/a

ondblclick

n/a

4

n/a

onfilterchange

n/a

4

n/a

onfocus

n/a

4

n/a

onhelp

n/a

4

n/a

onkeydown

n/a

4

n/a

onkeypress

n/a

4

n/a

onkeyup

n/a

4

n/a

onmousedown

4

4

n/a

onmousemove

n/a

4

n/a

onmouseout

n/a

4

n/a

onmouseover ...

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.