blob: 249a1f1ee1ac06bee5c49b3a634f40bb1760ad51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
title: checked
slug: Mozilla/Tech/XUL/Attribute/checked
tags:
- XUL Attributes
translation_of: Archive/Mozilla/XUL/Attribute/checked
---
<div class="noinclude">
<span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference">XUL Reference home</a></span></div>
<dl>
<dt>
<code id="a-checked"><a href="https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute/checked">checked</a></code></dt>
<dd>
Type:
<i>
boolean</i>
</dd>
<dd>
Indicates whether the element is checked or not.</dd>
<dd>
Use <code>hasAttribute()</code> to determine whether this attribute is set instead of <code>getAttribute()</code>.</dd>
<dd>
For buttons, the <code>type</code> attribute must be set to <code>checkbox</code> or <code>radio</code> for this attribute to have any effect.<magic name="\"PAGENAME\"/"></magic></dd>
</dl>
|