Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Window blur() method

Window blur() method

Window Object Reference Window Object


Definition and Usage

The blur() method removes the keyboard focus from the top-level window.

Syntax

window.blur()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers except Opera support the blur() method.


Example

Example

Ensure the new window does not get focus (send the new window to the background):

Try it »


More examples

Ensure the new window gets focus


Window Object Reference Window Object