Window.blur()

Éloigne la mise au point de la fenêtre.

Syntaxe

js
window.blur();

Exemple

js
window.blur();

Notes

La méthode window.blur() est l'équivalent programmatique du déplacement du focus de l'utilisateur loin de la fenêtre courante.

Spécifications

Specification
HTML
# dom-window-blur

Compatibilité des navigateurs

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
blur
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.