diff options
Diffstat (limited to 'files/ja/web/api/window/focus/index.html')
| -rw-r--r-- | files/ja/web/api/window/focus/index.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/files/ja/web/api/window/focus/index.html b/files/ja/web/api/window/focus/index.html new file mode 100644 index 0000000000..6008544ef7 --- /dev/null +++ b/files/ja/web/api/window/focus/index.html @@ -0,0 +1,24 @@ +--- +title: window.focus +slug: Web/API/Window/focus +tags: + - DOM + - DOM_0 + - Gecko + - Gecko DOM Reference + - Window +translation_of: Web/API/Window/focus +--- +<div> + {{ApiRef}}</div> +<h2 id="Summary" name="Summary">概要</h2> +<p>ウィンドウにフォーカスを合わせます。</p> +<h2 id="Syntax" name="Syntax">構文</h2> +<pre class="syntaxbox">window.focus() +</pre> +<h2 id="Example" name="Example">例</h2> +<pre class="brush:js">if ( clicked ) { + window.focus(); +}</pre> +<h2 id="Specification" name="Specification">仕様</h2> +<p>{{DOM0}}</p> |
