Name

Radio — a graphical radio button

Availability

Client-side JavaScript 1.0; enhanced in JavaScript 1.1

Inherits From

Input, HTMLElement

Synopsis

// A group of radio buttons with the same name
form.name[i]

Properties

Radio inherits properties from Input and HTMLElement and defines or overrides the following:

checked

Whether a Radio button is selected.

defaultChecked

Initial state of a Radio button.

value

Value returned when form is submitted.

Methods

Radio inherits methods from Input and HTMLElement.

Event Handlers

Radio inherits event handlers from Input and HTMLElement and defines or overrides the following:

onclick

The handler invoked when a Radio button is selected.

Get Webmaster in a Nutshell, Second Edition 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.