最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CHECKED Attribute | checked Property

Internet Development Index

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

Syntax

HTML<ELEMENT CHECKED ... >
Scriptingobject.checked [ = bChecked ]

Possible Values

bCheckedBoolean that specifies or receives one of the following values.
falseDefault. Control is not selected.
trueControl is selected.

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

Remarks

Check boxes that are not selected do not return their values when the form is submitted.

A user can select a radio button only if the button has a name. To clear a selected radio button, a user must select another button in the set.

Example

This example retrieves the checked property to fire an event.

<HEAD>
<SCRIPT>
function checkthis()
{
if (oCheckbox.checked == true)
{
alert("It's got a check; now off to Microsoft!");
window.open("http://www.microsoft.com");
}
}
</SCRIPT>
</HEAD>
<BODY>
Check here if you wish to go to Microsoft:
<INPUT ID=oCheckbox TYPE=checkbox onclick=checkthis()>
</BODY>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is defined in HTML 3.2 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

INPUT type=checkbox, INPUT type=radio

See Also

defaultChecked, Introduction to Forms
扶沟县| 朔州市| 苏尼特左旗| 天气| 喀喇沁旗| 巴彦淖尔市| 中牟县| 普陀区| 九台市| 北海市| 宜黄县| 瓮安县| 响水县| 沅陵县| 安平县| 新密市| 龙门县| 家居| 通州市| 孟津县| 得荣县| 莎车县| 额尔古纳市| 綦江县| 蓝山县| 宁国市| 金湖县| 霸州市| 德安县| 西藏| 金华市| 江西省| 锡林郭勒盟| 文安县| 集安市| 道真| 贺州市| 永胜县| 卢氏县| 翁牛特旗| 库尔勒市|