Document ⇐ Node

Kind: global class Extends: Node Access: public See: https://developer.mozilla.org/en-US/docs/Web/API/Document

new Document()

Creates an instance of Document.

document.onLine : boolean

Indicates if the computer is online

Kind: instance property of Document Read only: true

document.nodeName : string

Kind: instance property of Document Read only: true

document.nodeType : number

Kind: instance property of Document Read only: true

document.activeElement : Node

Kind: instance property of Document Read only: true

document.documentElement : Document

Kind: instance property of Document Read only: true

document.head : HTMLHeadElement

Kind: instance property of Document Read only: true

document.body : HTMLBodyElement

Kind: instance property of Document Read only: true

document.clipboard : Clippoard

Kind: instance property of Document Read only: true

document.styleSheets : StyleSheetList

Kind: instance property of Document Read only: true

document.contentEditable

Kind: instance property of Document Read only: true

document.isConnected : boolean

Kind: instance property of Document Read only: true

document.parentNode : Node

Kind: instance property of Document Read only: true

document.firstChild : Node

Kind: instance property of Document Read only: true

document.lastChild : Node

Kind: instance property of Document Read only: true

document.previousSibling : Node

Kind: instance property of Document Read only: true

document.nextSibling : Node

Kind: instance property of Document Read only: true

document.firstElementChild : Node

Kind: instance property of Document Read only: true

document.lastElementChild : Node

Kind: instance property of Document Read only: true

document.previousElementSibling : Node

Kind: instance property of Document Read only: true

document.nextElementSibling : Node

Kind: instance property of Document Read only: true

document.textContent : string

Kind: instance property of Document

document.childNodes : NodeList

Kind: instance property of Document Read only: true

document.ownerDocument

Kind: instance property of Document Read only: true

document.attributes

Kind: instance property of Document Read only: true

document.offsetParent

Kind: instance property of Document Read only: true

document.createElement(nodeName) ⇒ Element

Kind: instance method of Document

Param Type
nodeName string

document.createElementNS(ns, nodeName) ⇒ Element

Kind: instance method of Document

Param Type
ns string
nodeName string

document.createAttribute(nodeName) ⇒ Attr

Kind: instance method of Document

Param Type
nodeName string

document.createTextNode([text]) ⇒ Text

Kind: instance method of Document

Param Type Default
[text] string "\"\""

document.createComment([comment]) ⇒ Comment

Kind: instance method of Document

Param Type Default
[comment] string "\"\""

document.createDocumentFragment() ⇒ DocumentFragment

Kind: instance method of Document

document.cloneNode(deep) ⇒ Document

Kind: instance method of Document Overrides: cloneNode

Param Type
deep boolean

document.adoptNode(externalNode, deep) ⇒ Node

Kind: instance method of Document

Param Type
externalNode Node
deep boolean

document.importNode(externalNode, deep) ⇒ Node

Kind: instance method of Document

Param Type
externalNode Node
deep boolean

document.querySelector(selector) ⇒ Node

Kind: instance method of Document

Param Type
selector string

document.querySelectorAll(selector) ⇒ NodeList

Kind: instance method of Document

Param Type
selector string

document.getElementsByClassName(name) ⇒ NodeList

Kind: instance method of Document

Param Type
name string

document.getElementsByTagName(name) ⇒ NodeList

Kind: instance method of Document

Param Type
name string

document.getElementById(id) ⇒ Element

Kind: instance method of Document

Param Type
id string

document.hasChildNodes() ⇒ boolean

Kind: instance method of Document

document.appendChild(child) ⇒ Node

Kind: instance method of Document

Param Type
child Node

document.insertBefore(child, before) ⇒ Node

Kind: instance method of Document

Param Type
child Node
before Node

document.replaceChild(newChild, oldChild) ⇒ Node

Kind: instance method of Document

Param Type
newChild Node
oldChild Node

document.removeChild(child) ⇒ Node

Kind: instance method of Document

Param Type
child Node

document.remove()

Kind: instance method of Document

document.before(...nodes)

Kind: instance method of Document

Param Type
...nodes Array.<Node>

document.after(...nodes)

Kind: instance method of Document

Param Type
...nodes Array.<Node>

document.replaceWith(...nodes)

Kind: instance method of Document

Param Type
...nodes Array.<Node>

document.addEventListener(eventName, callback, [capture])

Kind: instance method of Document

Param Type Default
eventName *
callback *
[capture] boolean false

document.removeEventListener(eventName, callback, [capture])

Kind: instance method of Document

Param Type Default
eventName *
callback *
[capture] boolean false

document.dispatchEvent(event)

Kind: instance method of Document

Param Type
event *

results matching ""

    No results matching ""