• Skip to main content
  • Skip to search
  • Skip to select language

Learn front-end development with high quality, interactive courses from Scrimba. Enroll now!

MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. Window
  4. Window.blur()
    • Is this useful?
    • English (US)
    • Deutsch
    • Français
    • 日本語
    • 中文 (简体)

Эта страница была переведена с английского языка силами сообщества. Вы тоже можете внести свой вклад, присоединившись к русскоязычному сообществу MDN Web Docs.

В этой статье

  • Описание
  • Синтаксис
  • Пример
  • Примечания
  • Спецификации
  • Совместимость с браузерами
  1. Window
  2. Свойства экземпляра
    1. caches
    2. closed
    3. cookieStore
    4. credentialless Экспериментальная возможность
    5. crossOriginIsolated
    6. crypto
    7. customElements
    8. devicePixelRatio
    9. document
    10. documentPictureInPicture Экспериментальная возможность
    11. event Устарело
    12. external Устарело
    13. fence Экспериментальная возможность
    14. frameElement
    15. frames
    16. fullScreen Не стандартно
    17. history
    18. indexedDB
    19. innerHeight
    20. innerWidth
    21. isSecureContext
    22. launchQueue Экспериментальная возможность
    23. length
    24. localStorage
    25. location
    26. locationbar
    27. menubar
    28. mozInnerScreenX Не стандартно
    29. mozInnerScreenY Не стандартно
    30. name
    31. navigation Экспериментальная возможность
    32. navigator
    33. opener
    34. orientation Устарело
    35. origin
    36. originAgentCluster
    37. outerHeight
    38. outerWidth
    39. parent
    40. performance
    41. personalbar
    42. scheduler
    43. screen
    44. screenLeft
    45. screenTop
    46. screenX
    47. screenY
    48. scrollbars
    49. scrollMaxX Не стандартно
    50. scrollMaxY Не стандартно
    51. scrollX
    52. scrollY
    53. self
    54. sessionStorage
    55. sharedStorage Экспериментальная возможность
    56. speechSynthesis
    57. status Устарело
    58. statusbar
    59. toolbar
    60. top
    61. trustedTypes
    62. visualViewport
    63. window
  3. Методы экземпляра
    1. alert()
    2. atob()
    3. blur() Устарело
    4. btoa()
    5. cancelAnimationFrame()
    6. cancelIdleCallback()
    7. captureEvents() Устарело
    8. clearImmediate() Не стандартно Устарело
    9. clearInterval()
    10. clearTimeout()
    11. close()
    12. confirm()
    13. createImageBitmap()
    14. dump() Не стандартно
    15. fetch()
    16. fetchLater() Экспериментальная возможность
    17. find() Не стандартно
    18. focus()
    19. getComputedStyle()
    20. getDefaultComputedStyle() Не стандартно
    21. getScreenDetails() Экспериментальная возможность
    22. getSelection()
    23. matchMedia()
    24. moveBy()
    25. moveTo()
    26. open()
    27. postMessage()
    28. print()
    29. prompt()
    30. queryLocalFonts() Экспериментальная возможность
    31. queueMicrotask()
    32. releaseEvents() Устарело
    33. reportError()
    34. requestAnimationFrame()
    35. requestFileSystem() Не стандартно Устарело
    36. requestIdleCallback()
    37. resizeBy()
    38. resizeTo()
    39. scroll()
    40. scrollBy()
    41. scrollByLines() Не стандартно
    42. scrollByPages() Не стандартно
    43. scrollTo()
    44. setImmediate() Не стандартно Устарело
    45. setInterval()
    46. setResizable() Не стандартно Устарело
    47. setTimeout()
    48. showDirectoryPicker() Экспериментальная возможность
    49. showOpenFilePicker() Экспериментальная возможность
    50. showSaveFilePicker() Экспериментальная возможность
    51. sizeToContent() Не стандартно
    52. stop()
    53. structuredClone()
    54. webkitConvertPointFromNodeToPage() Не стандартно Устарело
    55. webkitConvertPointFromPageToNode() Не стандартно Устарело
  4. События
    1. afterprint
    2. appinstalled
    3. beforeinstallprompt
    4. beforeprint
    5. beforeunload
    6. blur
    7. devicemotion
    8. deviceorientation
    9. deviceorientationabsolute
    10. error
    11. focus
    12. gamepadconnected
    13. gamepaddisconnected
    14. hashchange
    15. languagechange
    16. load
    17. message
    18. messageerror
    19. offline
    20. online
    21. orientationchange Устарело
    22. pagehide
    23. pagereveal
    24. pageshow
    25. pageswap
    26. popstate
    27. rejectionhandled
    28. resize
    29. scrollsnapchange Экспериментальная возможность
    30. scrollsnapchanging Экспериментальная возможность
    31. storage
    32. unhandledrejection
    33. unload Устарело
    34. vrdisplayactivate Не стандартно Устарело
    35. vrdisplayconnect Не стандартно Устарело
    36. vrdisplaydeactivate Не стандартно Устарело
    37. vrdisplaydisconnect Не стандартно Устарело
    38. vrdisplaypresentchange Не стандартно Устарело
  5. Наследование
    1. EventTarget

В этой статье

  • Описание
  • Синтаксис
  • Пример
  • Примечания
  • Спецификации
  • Совместимость с браузерами

Window.blur()

Описание

Убирает фокус с окна.

Синтаксис

window.blur()

Пример

js
window.blur();

Примечания

Метод window.blur() является программным эквивалентом действия, когда пользователь переключает фокус с текущего окна.

Спецификации

Specification
HTML
# dom-window-blur

Совместимость с браузерами

Help improve MDN

Learn how to contribute.

This page was last modified on 3 авг. 2023 г. by MDN contributors.

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.