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.
window
caches
closed
cookieStore
credentialless
Expérimental
crossOriginIsolated
crypto
customElements
devicePixelRatio
document
documentPictureInPicture
Expérimental
event
Obsolète
external
Obsolète
fence
Expérimental
frameElement
frames
fullScreen
Non standard
history
indexedDB
innerHeight
innerWidth
isSecureContext
launchQueue
Expérimental
length
localStorage
location
locationbar
menubar
mozInnerScreenX
Non standard
mozInnerScreenY
Non standard
name
navigation
Expérimental
navigator
opener
orientation
Obsolète
origin
originAgentCluster
Expérimental
outerHeight
outerWidth
parent
performance
personalbar
scheduler
screen
screenLeft
screenTop
screenX
screenY
scrollbars
scrollMaxX
Non standard
scrollMaxY
Non standard
scrollX
scrollY
self
sessionStorage
sharedStorage
Expérimental
speechSynthesis
status
Obsolète
statusbar
toolbar
top
trustedTypes
visualViewport
window
alert()
atob()
back()
Non standard
Obsolète
blur()
Obsolète
btoa()
cancelAnimationFrame()
cancelIdleCallback()
captureEvents()
Obsolète
clearImmediate()
Non standard
Obsolète
clearInterval()
clearTimeout()
close()
confirm()
createImageBitmap()
dump()
Non standard
fetch()
find()
Non standard
focus()
forward()
Non standard
Obsolète
getComputedStyle()
getDefaultComputedStyle()
Non standard
getScreenDetails()
Expérimental
getSelection()
matchMedia()
moveBy()
moveTo()
open()
postMessage()
print()
prompt()
queryLocalFonts()
Expérimental
queueMicrotask()
releaseEvents()
Obsolète
reportError()
requestAnimationFrame()
requestFileSystem()
Non standard
Obsolète
requestIdleCallback()
resizeBy()
resizeTo()
scroll()
scrollBy()
scrollByLines()
Non standard
scrollByPages()
Non standard
scrollTo()
setImmediate()
Non standard
Obsolète
setInterval()
setResizable()
Non standard
Obsolète
setTimeout()
showDirectoryPicker()
Expérimental
showModalDialog()
Non standard
Obsolète
showOpenFilePicker()
Expérimental
showSaveFilePicker()
Expérimental
sizeToContent()
Non standard
stop()
structuredClone()
webkitConvertPointFromNodeToPage()
Non standard
Obsolète
webkitConvertPointFromPageToNode()
Non standard
Obsolète
afterprint
appinstalled
beforeinstallprompt
beforeprint
beforeunload
blur
copy
cut
devicemotion
deviceorientation
deviceorientationabsolute
error
focus
gamepadconnected
gamepaddisconnected
hashchange
languagechange
load
message
messageerror
offline
online
orientationchange
Obsolète
pagehide
pagereveal
pageshow
pageswap
paste
popstate
rejectionhandled
resize
scrollsnapchange
Expérimental
scrollsnapchanging
Expérimental
storage
unhandledrejection
unload
Obsolète
vrdisplayactivate
Non standard
Obsolète
vrdisplayconnect
Non standard
Obsolète
vrdisplaydeactivate
Non standard
Obsolète
vrdisplaydisconnect
Non standard
Obsolète
vrdisplaypresentchange
Non standard
Obsolète
Éloigne la mise au point de la fenêtre.
window.blur();
window.blur();
La méthode window.blur()
est l'équivalent programmatique du déplacement du focus de l'utilisateur loin de la fenêtre courante.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2024 by individual mozilla.org contributors. Content available under a Creative Commons license.