www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 defaultChecked Property
defaultChecked Property

Sets or retrieves the state of the check box or radio button.

Syntax

HTMLN/A
Scripting[ bChecked = ] object.defaultChecked

Possible Values

bCheckedBoolean that specifies or receives one of the following values.
trueDefault. Check box or radio button is selected by default.
falseCheck box or radio button is not selected by default.

The property is read/write. The property has a default value of true.

Remarks

The property can be changed programmatically, but doing so has no effect on the appearance of the check box or radio button or on how forms are submitted.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

INPUT type=checkbox, INPUT type=radio

See Also

checked
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG