• Skip to main content
  • Skip to search
  • Skip to select language
  • 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 Technology

      Web technology reference for developers

  • Guides
    • 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

  • MDN Plus
    • Overview

      More MDN. Your MDN.

    • FAQ

      Frequently asked questions about MDN Plus

  • Already a subscriber?
  • Get MDN Plus
  1. element.name
  2. Document.onoffline

Cette page a été traduite à partir de l'anglais par la communauté. Vous pouvez également contribuer en rejoignant la communauté francophone sur MDN Web Docs.

Related Topics

  1. Document Object Model
  2. Window
  3. Propriétés
    1. Deprecated applicationCache
    2. closed
    3. console
    4. customElements
    5. Deprecated defaultStatus
    6. devicePixelRatio
    7. document
    8. event
    9. Deprecated external (en-US)
    10. frameElement
    11. frames
    12. Non-Standard fullScreen
    13. history
    14. innerHeight
    15. innerWidth
    16. length
    17. localStorage
    18. location
    19. locationbar
    20. menubar
    21. mozInnerScreenX
    22. mozInnerScreenY
    23. Non-Standard Deprecated mozPaintCount
    24. name
    25. navigator
    26. Deprecated ondragdrop (en-US)
    27. opener
    28. outerHeight
    29. outerWidth
    30. pageXOffset (en-US)
    31. pageYOffset (en-US)
    32. parent
    33. personalbar (en-US)
    34. screen
    35. screenLeft (en-US)
    36. screenTop (en-US)
    37. screenX
    38. screenY (en-US)
    39. scrollbars
    40. Non-Standard scrollMaxX (en-US)
    41. Non-Standard scrollMaxY (en-US)
    42. scrollX (en-US)
    43. scrollY
    44. self (en-US)
    45. sessionStorage
    46. Non-Standard Deprecated sidebar (en-US)
    47. speechSynthesis (en-US)
    48. status (en-US)
    49. statusbar (en-US)
    50. toolbar (en-US)
    51. top
    52. visualViewport (en-US)
    53. window (en-US)
  4. Méthodes
    1. alert()
    2. Non-Standard Deprecated back()
    3. blur()
    4. Experimental cancelAnimationFrame()
    5. cancelIdleCallback()
    6. Non-Standard captureEvents()
    7. clearImmediate()
    8. close()
    9. confirm()
    10. Non-Standard convertPointFromNodeToPage() (en-US)
    11. Non-Standard convertPointFromPageToNode() (en-US)
    12. Non-Standard dump()
    13. Non-Standard find()
    14. focus()
    15. Non-Standard Deprecated forward() (en-US)
    16. getComputedStyle()
    17. getDefaultComputedStyle()
    18. getSelection()
    19. matchMedia()
    20. moveBy() (en-US)
    21. moveTo() (en-US)
    22. open()
    23. Non-Standard openDialog()
    24. postMessage()
    25. print()
    26. prompt()
    27. Non-Standard releaseEvents() (en-US)
    28. requestAnimationFrame()
    29. Non-Standard Deprecated requestFileSystem() (en-US)
    30. requestIdleCallback()
    31. resizeBy()
    32. resizeTo() (en-US)
    33. scroll()
    34. scrollBy()
    35. Non-Standard scrollByLines()
    36. Non-Standard scrollByPages()
    37. scrollTo()
    38. Non-Standard setImmediate() (en-US)
    39. showDirectoryPicker() (en-US)
    40. Deprecated showModalDialog()
    41. showOpenFilePicker() (en-US)
    42. showSaveFilePicker() (en-US)
    43. sizeToContent() (en-US)
    44. stop()
    45. updateCommands() (en-US)
  5. Événements
    1. event
    2. afterprint
    3. animationcancel (en-US)
    4. animationend (en-US)
    5. animationiteration (en-US)
    6. beforeinstallprompt (en-US)
    7. beforeprint
    8. beforeunload
    9. blur (en-US)
    10. copy
    11. cut
    12. deviceorientationabsolute (en-US)
    13. DOMContentLoaded
    14. error (en-US)
    15. focus (en-US)
    16. gamepadconnected
    17. hashchange
    18. languagechange
    19. load
    20. message
    21. messageerror
    22. offline
    23. online
    24. orientationchange (en-US)
    25. pagehide
    26. pageshow
    27. paste
    28. popstate
    29. rejectionhandled
    30. storage
    31. transitioncancel (en-US)
    32. unhandledrejection (en-US)
    33. unload
    34. Deprecated vrdisplayactivate (en-US)
    35. Deprecated vrdisplayblur (en-US)
    36. Deprecated vrdisplayconnect
    37. Deprecated vrdisplaydeactivate (en-US)
    38. Deprecated vrdisplaydisconnect
    39. Deprecated vrdisplayfocus (en-US)
    40. Deprecated vrdisplaypointerrestricted (en-US)
    41. Deprecated vrdisplaypointerunrestricted (en-US)
    42. Deprecated vrdisplaypresentchange
  6. Héritage :
    1. EventTarget
  7. Pages liées à DOM
    1. AbortController (en-US)
    2. AbortSignal
    3. AbstractRange (en-US)
    4. Attr
    5. CDATASection
    6. CharacterData
    7. Comment
    8. CustomEvent
    9. DOMError
    10. DOMException
    11. DOMImplementation
    12. DOMParser
    13. DOMPoint
    14. DOMPointReadOnly
    15. DOMRect
    16. DOMTimeStamp
    17. DOMTokenList
    18. Document
    19. DocumentFragment
    20. DocumentType
    21. Element
    22. Event
    23. EventTarget
    24. HTMLCollection
    25. MutationObserver
    26. NamedNodeMap
    27. Node
    28. NodeIterator
    29. NodeList
    30. ProcessingInstruction
    31. Range
    32. StaticRange (en-US)
    33. Text
    34. TextDecoder (en-US)
    35. TextEncoder
    36. TimeRanges
    37. TreeWalker
    38. XMLDocument

Document.onoffline

Le gestionnaire d'évènements est appelé lorsqu'un évènement offline (en-US) est lancé sur le corps (body) et propagé, quand la propriété navigator.onLine change et devient false (fausse).

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: 23 avr. 2022, by MDN contributors

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers

Support

  • Product help
  • Report a page issue
  • Report a site issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • 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–2022 by individual mozilla.org contributors. Content available under a Creative Commons license.