Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 911117 of Window.blur()

  • Revision slug: Web/API/Window/blur
  • Revision title: Window.blur()
  • Revision id: 911117
  • Created:
  • Creator: DavidWalsh
  • Is current revision? No
  • Comment
Tags: 

Revision Content

{{ APIRef('HTML DOM') }}

Summary

Shifts focus away from the window.

Syntax

window.blur()

Example

window.blur();

Notes

The window.blur() method is the programmatic equivalent of the user shifting focus away from the current window.

Specification

Specification Status Comment
{{SpecName('HTML WHATWG','interaction.html#dom-window-blur','Window.blur()')}} {{Spec2('HTML WHATWG')}}  

Revision Source

<p>{{ APIRef('HTML DOM') }}</p>

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

<p>Shifts focus away from the window.</p>

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

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

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

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

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

<p>The window.blur() method is the programmatic equivalent of the user shifting focus away from the current window.</p>

<h2 id="Specification" name="Specification">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>&nbsp;</td>
  </tr>
 </tbody>
</table>
Revert to this revision