O'Reilly logo

Essential JavaScript™ for Web Professionals, Second Edition by Dan Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Form Objects

This section covers the Form object and all of its related objects.

Button

Description: This object contains a push-button from an HTML form.

Syntax for creating: NA

Created by: the <input> tag with “button” specified as the TYPE attribute

Implemented in: Navigator 2.0/3.0/4.0

Event Handlers: onBlur, onClick, onFocus, onMouseDown, onMouseUP

Properties: form, name, type, value

Methods: blur, click, focus, handleEvent

Checkbox

Description: This object contains a checkbox from an HTML form.

Syntax for creating: NA

Created by: the <input> tag with “checkbox” specified as the TYPE attribute

Implemented in: Navigator 2.0/3.0/4.0

Event Handlers: onBlur, onClick, onFocus

Properties: checked, defaultChecked, form, name, type, value

Methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required