diff options
Diffstat (limited to 'files/ja/archive/mozilla/xul/attribute/label/index.html')
-rw-r--r-- | files/ja/archive/mozilla/xul/attribute/label/index.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/files/ja/archive/mozilla/xul/attribute/label/index.html b/files/ja/archive/mozilla/xul/attribute/label/index.html new file mode 100644 index 0000000000..c2a75b6e5f --- /dev/null +++ b/files/ja/archive/mozilla/xul/attribute/label/index.html @@ -0,0 +1,33 @@ +--- +title: label +slug: Archive/Mozilla/XUL/Attribute/label +tags: + - XUL Attributes + - XUL Reference +translation_of: Archive/Mozilla/XUL/Attribute/label +--- +<div class="noinclude"><span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/ja/docs/XUL/XUL_Reference">XUL リファレンス HOME</a></span></div> +<dl><dt> <code id="a-label"><a href="https://developer.mozilla.org/ja/docs/Mozilla/Tech/XUL/Attribute/label">label</a></code> </dt><dd> 型: <em>文字列型</em> </dd><dd> 要素上に表示するlabel。 省略された場合、テキストは表示されない。 </dd></dl> +<div class="noinclude"> +<h3 id="See_also" name="See_also">参考</h3> +<ul> <li><a href="/ja/XUL/Attribute/treeitem.label" title="ja/XUL/Attribute/treeitem.label">treeitem.label</a> と <code><a href="/ja/XUL/label" title="ja/XUL/label"><label></a></code> 要素</li> +</ul> +<h4 id="Examples_in_JavaScript" name="Examples_in_JavaScript">JavaScript のサンプル</h4> +<pre><label value="Whaw" id="the-big-label" command="the-big-button"/> +<button id="the-big-button" label="Click me" + oncommand="alert(document.getElementById('the-big-label').value)"/> + +<label id="myLabel" value="My label"/> +<button label="Click me" + oncommand="document.getElementById('myLabel').setAttribute('value','Value changed');" /> + +<checkbox label="my Checkbox" id="myCheckboX"/> +<button label="Another click" + oncommand="document.getElementById('myCheckboX').setAttribute('label','Still not checked');"/> +<button label="Show label of checkbox" + oncommand="alert( document.getElementById('myCheckboX').getAttribute('label') )"/> +</pre> +</div> +<div class="noinclude"> + +</div> |