skip to contentstylized crane logoWhite Crane Education

Text Objects

The text type represents the default value for an HTML input tag: <input type="text"> =


onblur onclick ondblclick onfocus
onkeydown onkeypress onkeyup onmousedown
onmouseenter onmouseleave onmousemove onmouseout
onmouseover onmouseup onselect


defaultValue returns/sets the control's default value
form returns a reference to the form to which the control belongs
name returns/sets the value of the checkbox's name attribute
type returns the value of the checkbox's type attribute
value returns/sets the value of the checkbox's value attribute


blur() takes the focus away from the checkbox
focus() moves the focus to the checkbox
select() causes the object's text to be selected