最新国产好看的视频,伊人天堂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
罗江县| 柳林县| 平陆县| 合水县| 亚东县| 兴仁县| 陵川县| 黄冈市| 祥云县| 德兴市| 沅陵县| 通山县| 宁德市| 山东省| 海丰县| 金坛市| 顺昌县| 义马市| 锡林郭勒盟| 荆州市| 福鼎市| 崇左市| 临颍县| 武鸣县| 长治市| 雅安市| 南汇区| 会东县| 承德市| 晋江市| 高尔夫| 双鸭山市| 珠海市| 安顺市| 台安县| 美姑县| 临海市| 长治县| 墨玉县| 恩施市| 革吉县|