close
Description
The close of Document for JS closes the input stream that was opened by the document.open() method.
Throws an "InvalidStateError" DOMException if the Document is an XML document.
Throws an "InvalidStateError" DOMException if the parser is currently executing a custom element constructor.
Syntax
document.close()
Examples
1 · void
Links
Related
Document
- adoptNode
- body
- characterSet
- compatMode
- contentType
- cookie
- createCDATASection
- createComment
- createDocumentFragment
- createElement
- createElementNS
- createProcessingInstruction
- createTextNode
- currentScript
- defaultView
- designMode
- dir
- doctype
- Document
- documentElement
- documentURI
- domain
- embeds
- exitPictureInPicture
- forms
- getElementsByClassName
- getElementsByName
- getElementsByTagName
- getElementsByTagNameNS
- hasFocus
- head
- hidden
- images
- implementation
- importNode
- lastModified
- links
- location
- onreadystatechange
- onvisibilitychange
- open
- parseHTMLUnsafe
- pictureInPictureEnabled
- plugins
- readyState
- referrer
- scripts
- title
- URL
- visibilityState
- write
- writeln