aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/blur/index.html
blob: 0aebdbb36774852821e30a4ee6965471c3426ba9 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: Window.blur()
slug: Web/API/Window/Window.blur()
translation_of: Web/API/Window/blur
---
<p>{{APIRef}}</p>

<h2 id="Summary" name="Summary">总结</h2>

<p>将焦点移出顶层窗口。</p>

<h2 id="Syntax" name="Syntax">语法</h2>

<pre class="syntaxbox"><code>window.blur()</code></pre>

<h2 id="Example" name="Example">示例</h2>

<pre class="brush:js">window.blur();</pre>

<h2 id="Notes" name="Notes">注意</h2>

<p>使用 window.blur() 方法与用户主动将焦点移出顶层窗口本质上是一样的。</p>

<h2 id="Specification" name="Specification">规范</h2>

<table class="spectable standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG','interaction.html#dom-window-blur','Window.blur()')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td> </td>
  </tr>
 </tbody>
</table>