diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 21:46:22 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 21:46:22 -0500 |
commit | a065e04d529da1d847b5062a12c46d916408bf32 (patch) | |
tree | fe0f8bcec1ff39a3c499a2708222dcf15224ff70 /files/ja/archive/mozilla/xul/attribute/id/index.html | |
parent | 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (diff) | |
download | translated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.gz translated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.bz2 translated-content-a065e04d529da1d847b5062a12c46d916408bf32.zip |
update based on https://github.com/mdn/yari/issues/2028
Diffstat (limited to 'files/ja/archive/mozilla/xul/attribute/id/index.html')
-rw-r--r-- | files/ja/archive/mozilla/xul/attribute/id/index.html | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/files/ja/archive/mozilla/xul/attribute/id/index.html b/files/ja/archive/mozilla/xul/attribute/id/index.html deleted file mode 100644 index 9a74313f02..0000000000 --- a/files/ja/archive/mozilla/xul/attribute/id/index.html +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: id -slug: Archive/Mozilla/XUL/Attribute/id -tags: - - XUL Attributes - - XUL Reference -translation_of: Archive/Mozilla/XUL/Attribute/id ---- -<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-id"><a href="https://developer.mozilla.org/ja/docs/Mozilla/Tech/XUL/Attribute/id">id</a></code> </dt><dd> 型: <em>window 内で固有の要素 ID</em> </dd><dd> 要素を識別するために付与される固有の識別子。 <code><a href="/ja/DOM/document.getElementById" title="ja/DOM/document.getElementById">getElementById()</a></code> などの DOM 関数やスタイルシートで要素を参照するために使うことができる。 </dd></dl> -<div class="noinclude"> -<h4 id="Example" name="Example">例</h4> -<pre><button id="foo" label="Click Me" oncommand="doSomething()"/> - -<script> -function doSomething(){ - var myButton = document.getElementById('foo'); - myButton.setAttribute('label','The button was pressed'); -} -</script> -</pre> -<p>上記の例のさらに抽象的な例は、以下のようになる。</p> -<pre><button id="foo" label="Click Me" oncommand="setWidgetLabel(this, 'I was pressed')"/> -<script> -function setWidgetLabel(idName, newCaption){ - document.getElementById( idName.id ).setAttribute('label',newCaption) -} - -</script> -</pre> -<h4 id="See_also" name="See_also">参照</h4> -<p><code><code id="a-name"><a href="https://developer.mozilla.org/ja/docs/Mozilla/Tech/XUL/Attribute/name">name</a></code></code></p> -</div> -<div class="noinclude"> - -</div> |