在navigator.onLine 属性更改并变为 false时,
在 body或冒泡到body上的offline
事件被触发。
另见
- Document Object Model
Document
- 属性
activeElement
alinkColor
anchors
applets
async
bgColor
body
characterSet
childElementCount
children
compatMode
contentType
currentScript
defaultView
designMode
dir
doctype
documentElement
documentURI
documentURIObject
domain
domConfig
embeds
fgColor
firstElementChild
forms
mozFullScreen
mozFullScreenElement
mozFullScreenEnabled
head
height
hidden
[我来译!]images
implementation
lastElementChild
lastModified
lastStyleSheetSet
linkColor
links
location
mozSyntheticDocument
[我来译!]onabort
onafterscriptexecute
onbeforescriptexecute
onblur
onchange
onclick
onclose
oncontextmenu
ondblclick
onerror
onfocus
onfullscreenchange
onfullscreenerror
[我来译!]oninput
onkeydown
onkeypress
onkeyup
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onoffline
ononline
[我来译!]onpointercancel
[我来译!]onpointerdown
[我来译!]onpointerenter
[我来译!]onpointerleave
[我来译!]onpointermove
[我来译!]onpointerout
[我来译!]onpointerover
[我来译!]onpointerup
[我来译!]onreset
[我来译!]onresize
onscroll
onselect
onselectionchange
[我来译!]onselectstart
[我来译!]onsubmit
ontouchcancel
[我来译!]ontouchmove
ontouchstart
[我来译!]origin
[我来译!]plugins
[我来译!]pointerLockElement
[我来译!]popupNode
[我来译!]preferredStyleSheetSet
[我来译!]readyState
referrer
scripts
scrollingElement
[我来译!]selectedStyleSheetSet
[我来译!]styleSheets
styleSheetSets
[我来译!]timeline
[我来译!]title
tooltipNode
URL
visibilityState
[我来译!]vlinkColor
[我来译!]width
xmlEncoding
[我来译!]xmlVersion
[我来译!]
- 方法
adoptNode()
[我来译!]append()
[我来译!]caretPositionFromPoint()
caretRangeFromPoint()
[我来译!]clear()
[我来译!]close
createAttribute
createCDATASection()
[我来译!]createComment
createDocumentFragment()
createElement()
createElementNS()
createEntityReference()
[我来译!]createEvent()
[我来译!]createExpression
createNodeIterator()
[我来译!]createNSResolver()
[我来译!]createProcessingInstruction()
[我来译!]createRange()
createTextNode
createTouch()
[我来译!]createTouchList()
[我来译!]createTreeWalker()
elementFromPoint()
enableStyleSheetsForSet()
[我来译!]evaluate
execCommand
exitFullscreen()
[我来译!]exitPointerLock()
[我来译!]getAnimations()
[我来译!]getBoxObjectFor()
[我来译!]getElementById
getElementsByClassName()
getElementsByName()
getElementsByTagName()
getElementsByTagNameNS()
[我来译!]getSelection
hasFocus
importNode
loadOverlay()
[我来译!]mozSetImageElement()
[我来译!]open()
[我来译!]prepend()
[我来译!]queryCommandEnabled()
[我来译!]queryCommandSupported()
querySelector()
querySelectorAll
registerElement()
releaseCapture
write
writeln
- 继承
- Related pages for DOM
Attr
ByteString
CDATASection
CSSPrimitiveValue
CSSValue
CSSValueList
CharacterData
ChildNode
Comment
CustomEvent
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMImplementation
DOMImplementationList
DOMImplementationRegistry
DOMImplementationSource
DOMLocator
DOMObject
DOMParser
DOMPoint
DOMRect
DOMString
DOMTimeStamp
DOMTokenList
DOMUserData
DocumentFragment
DocumentType
Element
ElementTraversal
Entity
EntityReference
Event
EventTarget
HTMLCollection
MutationObserver
Node
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
ProcessingInstruction
PromiseResolver
Range
Text
TextDecoder
TextEncoder
TimeRanges
TreeWalker
TypeInfo
USVString
UserDataHandler
XMLDocument