Click to return to the DHTML, HTML     
defaultCharset Property     defaultSelected Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

defaultChecked Property


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

Syntax

HTMLN/A
Scriptinginput.defaultChecked [ = bChecked ]

Possible Values

bChecked Boolean that specifies one of the following values:
trueCheck box or radio button is selected by default.
falseCheck box or radio button is not selected by default.

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

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

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.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
INPUT TYPE=checkbox, INPUT TYPE=radio

See Also

checked



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.