Document interface
La Document interfaz representa cualquier página web cargada en el explorador y actúa como punto de entrada en el contenido de la página web, que es el árbol DOM.
- Extends
-
Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase
Propiedades
| alink |
Devuelve o establece el color de un vínculo activo en el cuerpo del documento. |
| all | La propiedad de solo |
| anchors | Propiedad |
| applets | La |
| bg |
La propiedad en desuso |
| body | La |
| character |
La |
| charset | |
| compat |
La |
| content |
La |
| cookie | La propiedad |
| current |
La |
| default |
En los exploradores, |
| design |
|
| dir | La |
| doctype | La |
| document |
La |
| documentURI | Propiedad |
| domain | La |
| embeds | Propiedad |
| fg |
|
| forms | La |
| fragment |
La |
| fullscreen | La propiedad de solo lectura de |
| fullscreen |
La propiedad de solo |
| head | La |
| hidden | La |
| images | La |
| implementation | La |
| input |
|
| last |
La |
| link |
La |
| links | La |
| location | La |
| moz |
|
| ms |
|
| onfullscreenchange | |
| onfullscreenerror | |
| onpointerlockchange | |
| onpointerlockerror | |
| onreadystatechange | |
| onvisibilitychange | |
| owner |
La propiedad de solo |
| picture |
Propiedad de solo |
| plugins | Propiedad |
| ready |
La |
| referrer | La |
| root |
|
| scripts | La |
| scrolling |
La |
| text |
|
| timeline | La |
| title | La |
| URL | La |
| visibility |
La |
| vlink |
La |
| webkit |
Propiedades heredadas
| active |
Devuelve el elemento más profundo del documento a través del cual o a qué eventos clave se enrutan. Esto es, aproximadamente hablando, el elemento centrado en el documento. Para los fines de esta API, cuando se centra un contexto de exploración secundario, su contenedor se centra en el contexto de exploración primario. Por ejemplo, si el usuario mueve el foco a un control de texto en un iframe, el iframe es el elemento devuelto por la API activeElement en el documento de nodo del iframe. Del mismo modo, cuando el elemento centrado está en un árbol de nodos diferente al documentOrShadowRoot, el elemento devuelto será el host que se encuentra en el mismo árbol de nodos que documentOrShadowRoot si documentOrShadowRoot es un antecesor inclusivo incluido incluido del elemento centrado y null si no. |
| adopted |
|
| ATTRIBUTE_NODE | |
| baseURI | La propiedad de solo |
| CDATA_SECTION_NODE | node es un nodo CDATASection. |
| child |
|
| child |
La propiedad de solo |
| children | Devuelve los elementos secundarios. |
| COMMENT_NODE | node es un nodo Comment. |
| DOCUMENT_FRAGMENT_NODE | node es un nodo DocumentFragment. |
| DOCUMENT_NODE | node es un documento. |
| DOCUMENT_POSITION_CONTAINED_BY | Se establece cuando otro es un descendiente del nodo. |
| DOCUMENT_POSITION_CONTAINS | Se establece cuando otro es un antecesor de nodo. |
| DOCUMENT_POSITION_DISCONNECTED | Se establece cuando el nodo y otros no están en el mismo árbol. |
| DOCUMENT_POSITION_FOLLOWING | Se establece cuando otro nodo sigue. |
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | |
| DOCUMENT_POSITION_PRECEDING | Se establece cuando otro nodo es anterior. |
| DOCUMENT_TYPE_NODE | node es un tipo de documento. |
| ELEMENT_NODE | node es un elemento . |
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
La propiedad de solo |
| first |
Devuelve el primer elemento secundario que es un elemento y null en caso contrario. |
| fonts | |
| fullscreen |
Devuelve el elemento de pantalla completa del documento. |
| is |
La propiedad de solo |
| last |
La propiedad de solo |
| last |
Devuelve el último elemento secundario que es un elemento y null en caso contrario. |
| next |
La propiedad de solo |
| node |
La propiedad de solo |
| node |
La propiedad de solo |
| node |
La |
| NOTATION_NODE | |
| onabort | |
| onanimationcancel | |
| onanimationend | |
| onanimationiteration | |
| onanimationstart | |
| onauxclick | |
| onbeforeinput | |
| onbeforematch | |
| onbeforetoggle | |
| onblur | |
| oncancel | |
| oncanplay | |
| oncanplaythrough | |
| onchange | |
| onclick | |
| onclose | |
| oncontextlost | |
| oncontextmenu | |
| oncontextrestored | |
| oncopy | |
| oncuechange | |
| oncut | |
| ondblclick | |
| ondrag | |
| ondragend | |
| ondragenter | |
| ondragleave | |
| ondragover | |
| ondragstart | |
| ondrop | |
| ondurationchange | |
| onemptied | |
| onended | |
| onerror | |
| onfocus | |
| onformdata | |
| ongotpointercapture | |
| oninput | |
| oninvalid | |
| onkeydown | |
| onkeypress | |
| onkeyup | |
| onload | |
| onloadeddata | |
| onloadedmetadata | |
| onloadstart | |
| onlostpointercapture | |
| onmousedown | |
| onmouseenter | |
| onmouseleave | |
| onmousemove | |
| onmouseout | |
| onmouseover | |
| onmouseup | |
| onpaste | |
| onpause | |
| onplay | |
| onplaying | |
| onpointercancel | |
| onpointerdown | |
| onpointerenter | |
| onpointerleave | |
| onpointermove | |
| onpointerout | |
| onpointerover | |
| onpointerrawupdate | Solo está disponible en contextos seguros. |
| onpointerup | |
| onprogress | |
| onratechange | |
| onreset | |
| onresize | |
| onscroll | |
| onscrollend | |
| onsecuritypolicyviolation | |
| onseeked | |
| onseeking | |
| onselect | |
| onselectionchange | |
| onselectstart | |
| onslotchange | |
| onstalled | |
| onsubmit | |
| onsuspend | |
| ontimeupdate | |
| ontoggle | |
| ontouchcancel | |
| ontouchend | |
| ontouchmove | |
| ontouchstart | |
| ontransitioncancel | |
| ontransitionend | |
| ontransitionrun | |
| ontransitionstart | |
| onvolumechange | |
| onwaiting | |
| onwebkitanimationend | |
| onwebkitanimationiteration | |
| onwebkitanimationstart | |
| onwebkittransitionend | |
| onwheel | |
| parent |
La propiedad de solo |
| parent |
La propiedad de solo |
| picture |
|
| pointer |
|
| previous |
La propiedad de solo |
| PROCESSING_INSTRUCTION_NODE | node es un nodo ProcessingInstruction. |
| style |
|
| TEXT_NODE | node es un nodo Text. |
Métodos
| add |
|
| add |
El |
| adopt |
|
| capture |
|
| caret |
El |
| caret |
|
| clear() | El |
| close() | El |
| create |
El |
| create |
El |
| create |
|
| create |
|
| create |
Crea un nuevo DocumentFragment vacío en el que se pueden agregar nodos DOM para crear un árbol DOM fuera de pantalla. |
| create |
|
| create |
En un documento HTML, el |
| create |
|
| create |
|
| create |
Crea un elemento con el URI de espacio de nombres especificado y el nombre completo. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
Crea un evento del tipo especificado. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
El |
| create |
|
| create |
El |
| create |
Crea un nuevo nodo Text. |
| create |
El |
| exec |
El |
| exit |
El método |
| exit |
El |
| exit |
El |
| get |
Devuelve el primer elemento dentro de los descendientes del nodo cuyo identificador es elementId. |
| get |
Método |
| get |
El |
| get |
|
| get |
Se |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
Devuelve una lista de elementos con el nombre de etiqueta especificado que pertenece al espacio de nombres especificado. |
| get |
|
| get |
|
| get |
El |
| has |
El |
| has |
El |
| import |
El método del |
| open(string | URL, string, string) | |
| open(string, string) | El |
| query |
El |
| query |
|
| query |
El |
| query |
El |
| query |
|
| release |
|
| remove |
|
| remove |
El |
| request |
El |
| start |
El |
| write(string[]) | El |
| writeln(string[]) | El |
Métodos heredados
| append((string | Node)[]) | Inserta nodos después del último elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
| append |
El |
| clone |
El |
| compare |
El |
| contains(Node | null) | El |
| create |
|
| create |
|
| dispatch |
El |
| element |
|
| elements |
|
| evaluate(string, Node, XPath |
|
| get |
|
| get |
El |
| has |
El |
| insert |
El |
| is |
El |
| is |
El |
| is |
El |
| lookup |
El |
| lookup |
El |
| normalize() | El |
| prepend((string | Node)[]) | Inserta nodos antes del primer elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
| query |
|
| query |
Devuelve el primer elemento que es un descendiente del nodo que coincide con los selectores. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
Devuelve todos los descendientes de elementos del nodo que coinciden con los selectores. |
| query |
|
| query |
|
| query |
|
| remove |
El |
| replace |
El |
| replace |
Reemplace todos los elementos secundarios del nodo por nodos, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
Detalles de las propiedades
alinkColor
Devuelve o establece el color de un vínculo activo en el cuerpo del documento.
alinkColor: string
Valor de propiedad
string
all
La propiedad de solo all lectura de la interfaz Document devuelve un HTMLAllCollection rooteado en el nodo del documento.
all: HTMLAllCollection
Valor de propiedad
HTMLAllCollection
anchors
Propiedad anchors de solo lectura de An HTMLCollection.
anchors: HTMLCollectionOf<HTMLAnchorElement>
Valor de propiedad
HTMLCollectionOf<HTMLAnchorElement>
applets
La applets propiedad del documento devuelve un HTMLCollection vacío.
applets: HTMLCollection
Valor de propiedad
HTMLCollection
bgColor
La propiedad en desuso bgColor obtiene o establece el color de fondo del documento actual.
bgColor: string
Valor de propiedad
string
body
La Document.body propiedad representa null si no existe este elemento.
body: HTMLElement
Valor de propiedad
HTMLElement
characterSet
La Document.characterSet propiedad de solo lectura devuelve la codificación de caracteres del documento con la que se representa actualmente.
characterSet: string
Valor de propiedad
string
charset
charset: string
Valor de propiedad
string
compatMode
La Document.compatMode propiedad de solo lectura indica si el documento se representa en modo Quirks o en modo Estándar.
compatMode: string
Valor de propiedad
string
contentType
La Document.contentType propiedad de solo lectura devuelve el tipo MIME que el documento se representa como.
contentType: string
Valor de propiedad
string
cookie
La propiedad cookie Document le permite leer y escribir cookies asociadas al documento.
cookie: string
Valor de propiedad
string
currentScript
La Document.currentScript propiedad devuelve el elemento de script cuyo script se está procesando actualmente y no es un módulo de JavaScript.
currentScript: HTMLOrSVGScriptElement | null
Valor de propiedad
HTMLOrSVGScriptElement | null
defaultView
En los exploradores, document.defaultView devuelve la propiedad This is read-only.
defaultView: (Window & typeof globalThis) | null
Valor de propiedad
(Window & typeof globalThis) | null
designMode
document.designMode controla si se puede editar todo el documento.
designMode: string
Valor de propiedad
string
dir
La Document.dir propiedad es una cadena que representa la direccionalidad del texto del documento, ya sea de izquierda a derecha (valor predeterminado) o de derecha a izquierda.
dir: string
Valor de propiedad
string
doctype
La doctype propiedad de solo lectura de la interfaz Document es un objeto DocumentType que representa el doctype asociado al documento actual.
doctype: DocumentType | null
Valor de propiedad
DocumentType | null
documentElement
La documentElement propiedad de solo lectura de la interfaz Document devuelve el ejemplo, el elemento html para documentos HTML).
documentElement: HTMLElement
Valor de propiedad
HTMLElement
documentURI
Propiedad documentURI de solo lectura de la cadena A.
documentURI: string
Valor de propiedad
string
domain
La domain propiedad de la interfaz Document obtiene o establece la parte de dominio del origen del documento actual, tal como la usa la directiva de mismo origen.
domain: string
Valor de propiedad
string
embeds
Propiedad embeds de solo lectura de An HTMLCollection.
embeds: HTMLCollectionOf<HTMLEmbedElement>
Valor de propiedad
HTMLCollectionOf<HTMLEmbedElement>
fgColor
fgColor obtiene o establece el color de primer plano o el color del texto del documento actual.
fgColor: string
Valor de propiedad
string
forms
La forms propiedad de solo lectura de la interfaz Document devuelve un HTMLCollection que enumera todos los elementos de formulario contenidos en el documento.
forms: HTMLCollectionOf<HTMLFormElement>
Valor de propiedad
HTMLCollectionOf<HTMLFormElement>
fragmentDirective
La fragmentDirective propiedad de solo lectura de la interfaz Document devuelve fragmentDirective para el documento actual.
fragmentDirective: FragmentDirective
Valor de propiedad
FragmentDirective
fullscreen
La propiedad de solo lectura de fullscreen la interfaz document obsoleta informa de si el documento muestra o no contenido en modo de pantalla completa.
fullscreen: boolean
Valor de propiedad
boolean
fullscreenEnabled
La propiedad de solo fullscreenEnabled lectura de la interfaz Document indica si el modo de pantalla completa está disponible o no.
fullscreenEnabled: boolean
Valor de propiedad
boolean
head
La head propiedad de solo lectura de la interfaz Document devuelve el elemento principal del documento actual.
head: HTMLHeadElement
Valor de propiedad
HTMLHeadElement
hidden
La Document.hidden propiedad de solo lectura devuelve un valor booleano que indica si la página se considera oculta o no.
hidden: boolean
Valor de propiedad
boolean
images
La images propiedad de solo lectura de la interfaz Document devuelve una colección de las imágenes del documento HTML actual.
images: HTMLCollectionOf<HTMLImageElement>
Valor de propiedad
HTMLCollectionOf<HTMLImageElement>
implementation
La Document.implementation propiedad devuelve un objeto DOMImplementation.
implementation: DOMImplementation
Valor de propiedad
DOMImplementation
inputEncoding
inputEncoding: string
Valor de propiedad
string
lastModified
La lastModified propiedad de la interfaz Document devuelve una cadena que contiene la fecha y hora local en la que se modificó por última vez el documento actual.
lastModified: string
Valor de propiedad
string
linkColor
La Document.linkColor propiedad obtiene o establece el color de los vínculos dentro del documento.
linkColor: string
Valor de propiedad
string
links
La links propiedad de solo lectura de la interfaz Document devuelve una colección de todos los elementos de área y de un elemento de un documento con un valor para el atributo href.
links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
Valor de propiedad
HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
location
La Document.location propiedad de solo lectura devuelve y proporciona métodos para cambiar esa dirección URL y cargar otra dirección URL.
Location location
Valor de propiedad
Location
mozCancelFullScreen
mozCancelFullScreen: any
Valor de propiedad
any
msExitFullscreen
msExitFullscreen: any
Valor de propiedad
any
onfullscreenchange
onfullscreenchange: (this: Document, ev: Event) => any | null
Valor de propiedad
(this: Document, ev: Event) => any | null
onfullscreenerror
onfullscreenerror: (this: Document, ev: Event) => any | null
Valor de propiedad
(this: Document, ev: Event) => any | null
onpointerlockchange
onpointerlockchange: (this: Document, ev: Event) => any | null
Valor de propiedad
(this: Document, ev: Event) => any | null
onpointerlockerror
onpointerlockerror: (this: Document, ev: Event) => any | null
Valor de propiedad
(this: Document, ev: Event) => any | null
onreadystatechange
onreadystatechange: (this: Document, ev: Event) => any | null
Valor de propiedad
(this: Document, ev: Event) => any | null
onvisibilitychange
onvisibilitychange: (this: Document, ev: Event) => any | null
Valor de propiedad
(this: Document, ev: Event) => any | null
ownerDocument
La propiedad de solo ownerDocument lectura de la interfaz Node devuelve el objeto de documento de nivel superior del nodo.
ownerDocument: null
Valor de propiedad
null
pictureInPictureEnabled
Propiedad de solo pictureInPictureEnabled lectura de la propiedad disponible.
pictureInPictureEnabled: boolean
Valor de propiedad
boolean
plugins
Propiedad plugins de solo lectura del objeto que contiene uno o varios HTMLEmbedElements que representa an HTMLCollection.
plugins: HTMLCollectionOf<HTMLEmbedElement>
Valor de propiedad
HTMLCollectionOf<HTMLEmbedElement>
readyState
La Document.readyState propiedad describe el estado de carga del documento.
readyState: DocumentReadyState
Valor de propiedad
DocumentReadyState
referrer
La Document.referrer propiedad devuelve el URI de la página vinculada a esta página.
referrer: string
Valor de propiedad
string
rootElement
Document.rootElement devuelve el elemento que es el elemento raíz del documento si es un documento.
rootElement: SVGSVGElement | null
Valor de propiedad
SVGSVGElement | null
scripts
La scripts propiedad de la interfaz Document devuelve una lista de los elementos de script del documento.
scripts: HTMLCollectionOf<HTMLScriptElement>
Valor de propiedad
HTMLCollectionOf<HTMLScriptElement>
scrollingElement
La scrollingElement propiedad de solo lectura del documento se desplaza.
scrollingElement: Element | null
Valor de propiedad
Element | null
textContent
timeline
La timeline propiedad readonly de la interfaz Document representa la escala de tiempo predeterminada del documento actual.
timeline: DocumentTimeline
Valor de propiedad
DocumentTimeline
title
La document.title propiedad obtiene o establece el título actual del documento.
title: string
Valor de propiedad
string
URL
La URL propiedad de solo lectura de la interfaz Document devuelve la ubicación del documento como una cadena.
URL: string
Valor de propiedad
string
visibilityState
La Document.visibilityState propiedad de solo lectura devuelve la visibilidad del documento.
visibilityState: DocumentVisibilityState
Valor de propiedad
DocumentVisibilityState
vlinkColor
La Document.vlinkColor propiedad obtiene o establece el color de los vínculos que el usuario ha visitado en el documento.
vlinkColor: string
Valor de propiedad
string
webkitExitFullscreen
webkitExitFullscreen: void
Valor de propiedad
void
Detalles de las propiedades heredadas
activeElement
Devuelve el elemento más profundo del documento a través del cual o a qué eventos clave se enrutan. Esto es, aproximadamente hablando, el elemento centrado en el documento.
Para los fines de esta API, cuando se centra un contexto de exploración secundario, su contenedor se centra en el contexto de exploración primario. Por ejemplo, si el usuario mueve el foco a un control de texto en un iframe, el iframe es el elemento devuelto por la API activeElement en el documento de nodo del iframe.
Del mismo modo, cuando el elemento centrado está en un árbol de nodos diferente al documentOrShadowRoot, el elemento devuelto será el host que se encuentra en el mismo árbol de nodos que documentOrShadowRoot si documentOrShadowRoot es un antecesor inclusivo incluido incluido del elemento centrado y null si no.
activeElement: Element | null
Valor de propiedad
Element | null
heredado de DocumentOrShadowRoot.activeElement
adoptedStyleSheets
adoptedStyleSheets: CSSStyleSheet[]
Valor de propiedad
CSSStyleSheet[]
Heredado de DocumentOrShadowRoot.adoptedStyleSheets
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
Valor de propiedad
2
heredado de Node.ATTRIBUTE_NODE
baseURI
La propiedad de solo baseURI lectura de la interfaz Node devuelve la dirección URL base absoluta del documento que contiene el nodo.
baseURI: string
Valor de propiedad
string
heredado de Node.baseURI
CDATA_SECTION_NODE
node es un nodo CDATASection.
CDATA_SECTION_NODE: 4
Valor de propiedad
4
heredado de Node.CDATA_SECTION_NODE
childElementCount
childElementCount: number
Valor de propiedad
number
heredado de ParentNode.childElementCount
childNodes
La propiedad de solo childNodes lectura de la interfaz Node devuelve un elemento activo al primer nodo secundario al que se asigna el índice 0.
childNodes: NodeListOf<ChildNode>
Valor de propiedad
NodeListOf<ChildNode>
Heredado de Node.childNodes
children
Devuelve los elementos secundarios.
children: HTMLCollection
Valor de propiedad
HTMLCollection
Heredado de ParentNode.children
COMMENT_NODE
node es un nodo Comment.
COMMENT_NODE: 8
Valor de propiedad
8
heredado de Node.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
node es un nodo DocumentFragment.
DOCUMENT_FRAGMENT_NODE: 11
Valor de propiedad
11
heredado de Node.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
node es un documento.
DOCUMENT_NODE: 9
Valor de propiedad
9
heredado de Node.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
Se establece cuando otro es un descendiente del nodo.
DOCUMENT_POSITION_CONTAINED_BY: 16
Valor de propiedad
16
heredado de Node.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
Se establece cuando otro es un antecesor de nodo.
DOCUMENT_POSITION_CONTAINS: 8
Valor de propiedad
8
heredado de Node.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
Se establece cuando el nodo y otros no están en el mismo árbol.
DOCUMENT_POSITION_DISCONNECTED: 1
Valor de propiedad
1
heredado de Node.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Se establece cuando otro nodo sigue.
DOCUMENT_POSITION_FOLLOWING: 4
Valor de propiedad
4
heredado de Node.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Valor de propiedad
32
heredado de Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Se establece cuando otro nodo es anterior.
DOCUMENT_POSITION_PRECEDING: 2
Valor de propiedad
2
heredado de Node.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
node es un tipo de documento.
DOCUMENT_TYPE_NODE: 10
Valor de propiedad
10
heredado de Node.DOCUMENT_TYPE_NODE
ELEMENT_NODE
node es un elemento .
ELEMENT_NODE: 1
Valor de propiedad
1
heredado de Node.ELEMENT_NODE
ENTITY_NODE
ENTITY_NODE: 6
Valor de propiedad
6
heredado de Node.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
Valor de propiedad
5
heredado de Node.ENTITY_REFERENCE_NODE
firstChild
La propiedad de solo firstChild lectura de la interfaz Node devuelve el primer elemento secundario del nodo en el árbol o null si el nodo no tiene elementos secundarios.
firstChild: ChildNode | null
Valor de propiedad
ChildNode | null
Heredado de Node.firstChild
firstElementChild
Devuelve el primer elemento secundario que es un elemento y null en caso contrario.
firstElementChild: Element | null
Valor de propiedad
Element | null
Heredado de ParentNode.firstElementChild
fonts
fonts: FontFaceSet
Valor de propiedad
FontFaceSet
Heredado de FontFaceSource.fonts
fullscreenElement
Devuelve el elemento de pantalla completa del documento.
fullscreenElement: Element | null
Valor de propiedad
Element | null
heredado de DocumentOrShadowRoot.fullscreenElement
isConnected
La propiedad de solo isConnected lectura de la interfaz Node devuelve un valor booleano que indica si el nodo está conectado (directa o indirectamente) a un objeto Document.
isConnected: boolean
Valor de propiedad
boolean
Heredado de Node.isConnected
lastChild
La propiedad de solo lastChild lectura de la interfaz Node devuelve el último elemento secundario del nodo o null si no hay nodos secundarios.
lastChild: ChildNode | null
Valor de propiedad
ChildNode | null
Heredado de Node.lastChild
lastElementChild
Devuelve el último elemento secundario que es un elemento y null en caso contrario.
lastElementChild: Element | null
Valor de propiedad
Element | null
Heredado de ParentNode.lastElementChild
nextSibling
La propiedad de solo nextSibling lectura de la interfaz Node devuelve el nodo inmediatamente después del especificado en node.childNodes de su elemento primario, o devuelve null si el nodo especificado es el último elemento secundario del elemento primario.
nextSibling: ChildNode | null
Valor de propiedad
ChildNode | null
heredado de Node.nextSibling
nodeName
La propiedad de solo nodeName lectura de Node devuelve el nombre del nodo actual como una cadena.
nodeName: string
Valor de propiedad
string
heredado de Node.nodeName
nodeType
La propiedad de solo nodeType lectura de una interfaz Node es un entero que identifica lo que es el nodo.
nodeType: number
Valor de propiedad
number
Heredado de Node.nodeType
nodeValue
La nodeValue propiedad de la interfaz Node devuelve o establece el valor del nodo actual.
nodeValue: string | null
Valor de propiedad
string | null
Heredado de Node.nodeValue
NOTATION_NODE
NOTATION_NODE: 12
Valor de propiedad
12
heredado de Node.NOTATION_NODE
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: UIEvent) => any | null
heredado de GlobalEventHandlers.onabort
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de GlobalEventHandlers.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de GlobalEventHandlers.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de GlobalEventHandlers.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Heredado de GlobalEventHandlers.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Heredado de GlobalEventHandlers.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: InputEvent) => any | null
Heredado de GlobalEventHandlers.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Heredado de GlobalEventHandlers.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Heredado de GlobalEventHandlers.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Heredado de GlobalEventHandlers.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Heredado de GlobalEventHandlers.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Heredado de GlobalEventHandlers.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de GlobalEventHandlers.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de GlobalEventHandlers.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de GlobalEventHandlers.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de GlobalEventHandlers.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Heredado de GlobalEventHandlers.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de GlobalEventHandlers.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de GlobalEventHandlers.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onended
onerror
onerror: OnErrorEventHandler
Valor de propiedad
OnErrorEventHandler
Heredado de GlobalEventHandlers.onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
heredado de GlobalEventHandlers.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Heredado de GlobalEventHandlers.onformdata
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Heredado de GlobalEventHandlers.ongotpointercapture
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Heredado de GlobalEventHandlers.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
heredado de GlobalEventHandlers.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
heredado de GlobalEventHandlers.onkeyup
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de GlobalEventHandlers.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.onlostpointercapture
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de GlobalEventHandlers.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de GlobalEventHandlers.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Heredado de GlobalEventHandlers.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de GlobalEventHandlers.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de GlobalEventHandlers.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de GlobalEventHandlers.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Heredado de GlobalEventHandlers.onmouseup
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Heredado de GlobalEventHandlers.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de GlobalEventHandlers.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de GlobalEventHandlers.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Heredado de GlobalEventHandlers.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Heredado de GlobalEventHandlers.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
se hereda de GlobalEventHandlers.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de GlobalEventHandlers.onpointerover
onpointerrawupdate
Solo está disponible en contextos seguros.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Se hereda de GlobalEventHandlers.onpointerup
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Heredado de GlobalEventHandlers.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onratechange
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: UIEvent) => any | null
se hereda de GlobalEventHandlers.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
heredado de GlobalEventHandlers.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Se hereda de GlobalEventHandlers.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Se hereda de GlobalEventHandlers.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onstalled
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Heredado de GlobalEventHandlers.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de GlobalEventHandlers.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Se hereda de GlobalEventHandlers.ontoggle
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de GlobalEventHandlers.ontouchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de GlobalEventHandlers.ontouchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de GlobalEventHandlers.ontouchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Heredado de GlobalEventHandlers.ontouchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
heredado de GlobalEventHandlers.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
heredado de GlobalEventHandlers.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
heredado de GlobalEventHandlers.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Heredado de GlobalEventHandlers.ontransitionstart
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Se hereda de GlobalEventHandlers.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de GlobalEventHandlers.onwaiting
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onwebkitanimationend
onwebkitanimationiteration
Advertencia
Esta API ya está en desuso.
This is a legacy alias of onanimationiteration.
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de GlobalEventHandlers.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de GlobalEventHandlers.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
heredado de GlobalEventHandlers.onwheel
parentElement
La propiedad de solo parentElement lectura de la interfaz Node devuelve el elemento primario del nodo DOM, o null si el nodo no tiene ningún elemento primario o su elemento primario no es un elemento DOM.
parentElement: HTMLElement | null
Valor de propiedad
HTMLElement | null
Heredado de Node.parentElement
parentNode
La propiedad de solo parentNode lectura de la interfaz Node devuelve el elemento primario del nodo especificado en el árbol DOM.
parentNode: ParentNode | null
Valor de propiedad
ParentNode | null
heredado de Node.parentNode
pictureInPictureElement
pictureInPictureElement: Element | null
Valor de propiedad
Element | null
heredado de DocumentOrShadowRoot.pictureInPictureElement
pointerLockElement
pointerLockElement: Element | null
Valor de propiedad
Element | null
Heredado de DocumentOrShadowRoot.pointerLockElement
previousSibling
La propiedad de solo previousSibling lectura de la interfaz Node devuelve el nodo inmediatamente anterior al especificado en el elemento primario o null si el nodo especificado es el primero de esa lista.
previousSibling: ChildNode | null
Valor de propiedad
ChildNode | null
Heredado de Node.previousSibling
PROCESSING_INSTRUCTION_NODE
node es un nodo ProcessingInstruction.
PROCESSING_INSTRUCTION_NODE: 7
Valor de propiedad
7
heredado de Node.PROCESSING_INSTRUCTION_NODE
styleSheets
styleSheets: StyleSheetList
Valor de propiedad
StyleSheetList
Heredado de DocumentOrShadowRoot.styleSheets
TEXT_NODE
node es un nodo Text.
TEXT_NODE: 3
Valor de propiedad
3
heredado de Node.TEXT_NODE
Detalles del método
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parámetros
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)
El addEventListener() método de la interfaz EventTarget configura una función a la que se llamará cada vez que se entregue el evento especificado al destino.
function addEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parámetros
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
adoptNode<T>(T)
Document.adoptNode() transfiere un nodo o dom de otro documento al documento del método.
function adoptNode<T>(node: T): T
Parámetros
- node
-
T
Devoluciones
T
captureEvents()
Advertencia
Esta API ya está en desuso.
function captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)
El caretPositionFromPoint() método de la interfaz Document devuelve un objeto CaretPosition, que contiene el nodo DOM, junto con el desplazamiento de caracteres de intercalación y de intercalación dentro de ese nodo.
function caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null
Parámetros
- x
-
number
- y
-
number
- options
-
CaretPositionFromPointOptions
Devoluciones
CaretPosition | null
caretRangeFromPoint(number, number)
Advertencia
Esta API ya está en desuso.
function caretRangeFromPoint(x: number, y: number): Range | null
Parámetros
- x
-
number
- y
-
number
Devoluciones
Range | null
clear()
El Document.clear() método no hace nada, pero no genera ningún error.
function clear()
close()
El Document.close() método termina de escribir en un documento, abierto con Document.open().
function close()
createAttribute(string)
El Document.createAttribute() método crea un nuevo nodo de atributo y lo devuelve.
function createAttribute(localName: string): Attr
Parámetros
- localName
-
string
Devoluciones
Attr
createAttributeNS(string | null, string)
El Document.createAttributeNS() método crea un nuevo nodo de atributo con el URI de espacio de nombres especificado y el nombre completo, y lo devuelve.
function createAttributeNS(namespace: string | null, qualifiedName: string): Attr
Parámetros
- namespace
-
string | null
- qualifiedName
-
string
Devoluciones
Attr
createCDATASection(string)
createCDATASection() crea un nuevo nodo de sección CDATA y lo devuelve.
function createCDATASection(data: string): CDATASection
Parámetros
- data
-
string
Devoluciones
CDATASection
createComment(string)
createComment() crea un nuevo nodo de comentario y lo devuelve.
function createComment(data: string): Comment
Parámetros
- data
-
string
Devoluciones
Comment
createDocumentFragment()
Crea un nuevo DocumentFragment vacío en el que se pueden agregar nodos DOM para crear un árbol DOM fuera de pantalla.
function createDocumentFragment(): DocumentFragment
Devoluciones
DocumentFragment
createElement(string, ElementCreationOptions)
function createElement(tagName: string, options?: ElementCreationOptions): HTMLElement
Parámetros
- tagName
-
string
- options
-
ElementCreationOptions
Devoluciones
HTMLElement
createElement<K>(K, ElementCreationOptions)
En un documento HTML, el document.createElement() método crea el elemento HTML especificado por localNameo htmlUnknownElement si localName no se reconoce.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]
Parámetros
- tagName
-
K
- options
-
ElementCreationOptions
Devoluciones
HTMLElementTagNameMap[K]
createElement<K>(K, ElementCreationOptions)
Advertencia
Esta API ya está en desuso.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]
Parámetros
- tagName
-
K
- options
-
ElementCreationOptions
Devoluciones
HTMLElementDeprecatedTagNameMap[K]
createElementNS("http://www.w3.org/1998/Math/MathML", string)
function createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement
Parámetros
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
string
Devoluciones
MathMLElement
createElementNS("http://www.w3.org/1999/xhtml", string)
Crea un elemento con el URI de espacio de nombres especificado y el nombre completo.
function createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement
Parámetros
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- qualifiedName
-
string
Devoluciones
HTMLElement
createElementNS("http://www.w3.org/2000/svg", string)
function createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
Parámetros
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
string
Devoluciones
SVGElement
createElementNS(string | null, string, ElementCreationOptions)
function createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element
Parámetros
- namespaceURI
-
string | null
- qualifiedName
-
string
- options
-
ElementCreationOptions
Devoluciones
Element
createElementNS(string | null, string, string | ElementCreationOptions)
function createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element
Parámetros
- namespace
-
string | null
- qualifiedName
-
string
- options
-
string | ElementCreationOptions
Devoluciones
Element
createElementNS<K>("http://www.w3.org/1998/Math/MathML", K)
function createElementNS<K>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]
Parámetros
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
K
Devoluciones
MathMLElementTagNameMap[K]
createElementNS<K>("http://www.w3.org/2000/svg", K)
function createElementNS<K>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]
Parámetros
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
K
Devoluciones
SVGElementTagNameMap[K]
createEvent("AnimationEvent")
Crea un evento del tipo especificado.
function createEvent(eventInterface: "AnimationEvent"): AnimationEvent
Parámetros
- eventInterface
-
"AnimationEvent"
Devoluciones
AnimationEvent
createEvent("AnimationPlaybackEvent")
function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent
Parámetros
- eventInterface
-
"AnimationPlaybackEvent"
Devoluciones
AnimationPlaybackEvent
createEvent("AudioProcessingEvent")
function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent
Parámetros
- eventInterface
-
"AudioProcessingEvent"
Devoluciones
AudioProcessingEvent
createEvent("BeforeUnloadEvent")
function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent
Parámetros
- eventInterface
-
"BeforeUnloadEvent"
Devoluciones
BeforeUnloadEvent
createEvent("BlobEvent")
function createEvent(eventInterface: "BlobEvent"): BlobEvent
Parámetros
- eventInterface
-
"BlobEvent"
Devoluciones
BlobEvent
createEvent("ClipboardEvent")
function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent
Parámetros
- eventInterface
-
"ClipboardEvent"
Devoluciones
ClipboardEvent
createEvent("CloseEvent")
function createEvent(eventInterface: "CloseEvent"): CloseEvent
Parámetros
- eventInterface
-
"CloseEvent"
Devoluciones
CloseEvent
createEvent("CompositionEvent")
function createEvent(eventInterface: "CompositionEvent"): CompositionEvent
Parámetros
- eventInterface
-
"CompositionEvent"
Devoluciones
CompositionEvent
createEvent("ContentVisibilityAutoStateChangeEvent")
function createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent
Parámetros
- eventInterface
-
"ContentVisibilityAutoStateChangeEvent"
Devoluciones
ContentVisibilityAutoStateChangeEvent
createEvent("CookieChangeEvent")
function createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent
Parámetros
- eventInterface
-
"CookieChangeEvent"
Devoluciones
CookieChangeEvent
createEvent("CustomEvent")
function createEvent(eventInterface: "CustomEvent"): CustomEvent
Parámetros
- eventInterface
-
"CustomEvent"
Devoluciones
CustomEvent
createEvent("DeviceMotionEvent")
function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent
Parámetros
- eventInterface
-
"DeviceMotionEvent"
Devoluciones
DeviceMotionEvent
createEvent("DeviceOrientationEvent")
function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent
Parámetros
- eventInterface
-
"DeviceOrientationEvent"
Devoluciones
DeviceOrientationEvent
createEvent("DragEvent")
function createEvent(eventInterface: "DragEvent"): DragEvent
Parámetros
- eventInterface
-
"DragEvent"
Devoluciones
DragEvent
createEvent("ErrorEvent")
function createEvent(eventInterface: "ErrorEvent"): ErrorEvent
Parámetros
- eventInterface
-
"ErrorEvent"
Devoluciones
ErrorEvent
createEvent("Event")
function createEvent(eventInterface: "Event"): Event
Parámetros
- eventInterface
-
"Event"
Devoluciones
Event
createEvent("Events")
function createEvent(eventInterface: "Events"): Event
Parámetros
- eventInterface
-
"Events"
Devoluciones
Event
createEvent("FocusEvent")
function createEvent(eventInterface: "FocusEvent"): FocusEvent
Parámetros
- eventInterface
-
"FocusEvent"
Devoluciones
FocusEvent
createEvent("FontFaceSetLoadEvent")
function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent
Parámetros
- eventInterface
-
"FontFaceSetLoadEvent"
Devoluciones
FontFaceSetLoadEvent
createEvent("FormDataEvent")
function createEvent(eventInterface: "FormDataEvent"): FormDataEvent
Parámetros
- eventInterface
-
"FormDataEvent"
Devoluciones
FormDataEvent
createEvent("GamepadEvent")
function createEvent(eventInterface: "GamepadEvent"): GamepadEvent
Parámetros
- eventInterface
-
"GamepadEvent"
Devoluciones
GamepadEvent
createEvent("HashChangeEvent")
function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent
Parámetros
- eventInterface
-
"HashChangeEvent"
Devoluciones
HashChangeEvent
createEvent("IDBVersionChangeEvent")
function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent
Parámetros
- eventInterface
-
"IDBVersionChangeEvent"
Devoluciones
IDBVersionChangeEvent
createEvent("InputEvent")
function createEvent(eventInterface: "InputEvent"): InputEvent
Parámetros
- eventInterface
-
"InputEvent"
Devoluciones
InputEvent
createEvent("KeyboardEvent")
function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent
Parámetros
- eventInterface
-
"KeyboardEvent"
Devoluciones
KeyboardEvent
createEvent("MediaEncryptedEvent")
function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent
Parámetros
- eventInterface
-
"MediaEncryptedEvent"
Devoluciones
MediaEncryptedEvent
createEvent("MediaKeyMessageEvent")
function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent
Parámetros
- eventInterface
-
"MediaKeyMessageEvent"
Devoluciones
MediaKeyMessageEvent
createEvent("MediaQueryListEvent")
function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent
Parámetros
- eventInterface
-
"MediaQueryListEvent"
Devoluciones
MediaQueryListEvent
createEvent("MediaStreamTrackEvent")
function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent
Parámetros
- eventInterface
-
"MediaStreamTrackEvent"
Devoluciones
MediaStreamTrackEvent
createEvent("MessageEvent")
function createEvent(eventInterface: "MessageEvent"): MessageEvent
Parámetros
- eventInterface
-
"MessageEvent"
Devoluciones
MessageEvent
createEvent("MIDIConnectionEvent")
function createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent
Parámetros
- eventInterface
-
"MIDIConnectionEvent"
Devoluciones
MIDIConnectionEvent
createEvent("MIDIMessageEvent")
function createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent
Parámetros
- eventInterface
-
"MIDIMessageEvent"
Devoluciones
MIDIMessageEvent
createEvent("MouseEvent")
function createEvent(eventInterface: "MouseEvent"): MouseEvent
Parámetros
- eventInterface
-
"MouseEvent"
Devoluciones
MouseEvent
createEvent("MouseEvents")
function createEvent(eventInterface: "MouseEvents"): MouseEvent
Parámetros
- eventInterface
-
"MouseEvents"
Devoluciones
MouseEvent
createEvent("OfflineAudioCompletionEvent")
function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent
Parámetros
- eventInterface
-
"OfflineAudioCompletionEvent"
Devoluciones
OfflineAudioCompletionEvent
createEvent("PageRevealEvent")
function createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent
Parámetros
- eventInterface
-
"PageRevealEvent"
Devoluciones
PageRevealEvent
createEvent("PageSwapEvent")
function createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent
Parámetros
- eventInterface
-
"PageSwapEvent"
Devoluciones
PageSwapEvent
createEvent("PageTransitionEvent")
function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent
Parámetros
- eventInterface
-
"PageTransitionEvent"
Devoluciones
PageTransitionEvent
createEvent("PaymentMethodChangeEvent")
function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent
Parámetros
- eventInterface
-
"PaymentMethodChangeEvent"
Devoluciones
PaymentMethodChangeEvent
createEvent("PaymentRequestUpdateEvent")
function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent
Parámetros
- eventInterface
-
"PaymentRequestUpdateEvent"
Devoluciones
PaymentRequestUpdateEvent
createEvent("PictureInPictureEvent")
function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent
Parámetros
- eventInterface
-
"PictureInPictureEvent"
Devoluciones
PictureInPictureEvent
createEvent("PointerEvent")
function createEvent(eventInterface: "PointerEvent"): PointerEvent
Parámetros
- eventInterface
-
"PointerEvent"
Devoluciones
PointerEvent
createEvent("PopStateEvent")
function createEvent(eventInterface: "PopStateEvent"): PopStateEvent
Parámetros
- eventInterface
-
"PopStateEvent"
Devoluciones
PopStateEvent
createEvent("ProgressEvent")
function createEvent(eventInterface: "ProgressEvent"): ProgressEvent
Parámetros
- eventInterface
-
"ProgressEvent"
Devoluciones
ProgressEvent
createEvent("PromiseRejectionEvent")
function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent
Parámetros
- eventInterface
-
"PromiseRejectionEvent"
Devoluciones
PromiseRejectionEvent
createEvent("RTCDataChannelEvent")
function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent
Parámetros
- eventInterface
-
"RTCDataChannelEvent"
Devoluciones
RTCDataChannelEvent
createEvent("RTCDTMFToneChangeEvent")
function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent
Parámetros
- eventInterface
-
"RTCDTMFToneChangeEvent"
Devoluciones
RTCDTMFToneChangeEvent
createEvent("RTCErrorEvent")
function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent
Parámetros
- eventInterface
-
"RTCErrorEvent"
Devoluciones
RTCErrorEvent
createEvent("RTCPeerConnectionIceErrorEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent
Parámetros
- eventInterface
-
"RTCPeerConnectionIceErrorEvent"
Devoluciones
RTCPeerConnectionIceErrorEvent
createEvent("RTCPeerConnectionIceEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent
Parámetros
- eventInterface
-
"RTCPeerConnectionIceEvent"
Devoluciones
RTCPeerConnectionIceEvent
createEvent("RTCTrackEvent")
function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent
Parámetros
- eventInterface
-
"RTCTrackEvent"
Devoluciones
RTCTrackEvent
createEvent("SecurityPolicyViolationEvent")
function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent
Parámetros
- eventInterface
-
"SecurityPolicyViolationEvent"
Devoluciones
SecurityPolicyViolationEvent
createEvent("SpeechSynthesisErrorEvent")
function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent
Parámetros
- eventInterface
-
"SpeechSynthesisErrorEvent"
Devoluciones
SpeechSynthesisErrorEvent
createEvent("SpeechSynthesisEvent")
function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent
Parámetros
- eventInterface
-
"SpeechSynthesisEvent"
Devoluciones
SpeechSynthesisEvent
createEvent("StorageEvent")
function createEvent(eventInterface: "StorageEvent"): StorageEvent
Parámetros
- eventInterface
-
"StorageEvent"
Devoluciones
StorageEvent
createEvent("SubmitEvent")
function createEvent(eventInterface: "SubmitEvent"): SubmitEvent
Parámetros
- eventInterface
-
"SubmitEvent"
Devoluciones
SubmitEvent
createEvent("TextEvent")
function createEvent(eventInterface: "TextEvent"): TextEvent
Parámetros
- eventInterface
-
"TextEvent"
Devoluciones
TextEvent
createEvent("ToggleEvent")
function createEvent(eventInterface: "ToggleEvent"): ToggleEvent
Parámetros
- eventInterface
-
"ToggleEvent"
Devoluciones
ToggleEvent
createEvent("TouchEvent")
function createEvent(eventInterface: "TouchEvent"): TouchEvent
Parámetros
- eventInterface
-
"TouchEvent"
Devoluciones
TouchEvent
createEvent("TrackEvent")
function createEvent(eventInterface: "TrackEvent"): TrackEvent
Parámetros
- eventInterface
-
"TrackEvent"
Devoluciones
TrackEvent
createEvent("TransitionEvent")
function createEvent(eventInterface: "TransitionEvent"): TransitionEvent
Parámetros
- eventInterface
-
"TransitionEvent"
Devoluciones
TransitionEvent
createEvent("UIEvent")
function createEvent(eventInterface: "UIEvent"): UIEvent
Parámetros
- eventInterface
-
"UIEvent"
Devoluciones
UIEvent
createEvent("UIEvents")
function createEvent(eventInterface: "UIEvents"): UIEvent
Parámetros
- eventInterface
-
"UIEvents"
Devoluciones
UIEvent
createEvent("WebGLContextEvent")
function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent
Parámetros
- eventInterface
-
"WebGLContextEvent"
Devoluciones
WebGLContextEvent
createEvent("WheelEvent")
function createEvent(eventInterface: "WheelEvent"): WheelEvent
Parámetros
- eventInterface
-
"WheelEvent"
Devoluciones
WheelEvent
createEvent(string)
function createEvent(eventInterface: string): Event
Parámetros
- eventInterface
-
string
Devoluciones
Event
createNodeIterator(Node, number, NodeFilter | null)
El Document.createNodeIterator() método devuelve un nuevo NodeIterator objeto.
function createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator
Parámetros
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Devoluciones
NodeIterator
createProcessingInstruction(string, string)
createProcessingInstruction() genera un nuevo nodo de instrucción de procesamiento y lo devuelve.
function createProcessingInstruction(target: string, data: string): ProcessingInstruction
Parámetros
- target
-
string
- data
-
string
Devoluciones
ProcessingInstruction
createRange()
El Document.createRange() método devuelve un nuevo js-nolint createRange() none.
function createRange(): Range
Devoluciones
Range
createTextNode(string)
Crea un nuevo nodo Text.
function createTextNode(data: string): Text
Parámetros
- data
-
string
Devoluciones
Text
createTreeWalker(Node, number, NodeFilter | null)
El Document.createTreeWalker() método creator devuelve un objeto TreeWalker recién creado.
function createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker
Parámetros
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Devoluciones
TreeWalker
execCommand(string, boolean, string)
El execCommand método implementa varios comandos diferentes.
function execCommand(commandId: string, showUI?: boolean, value?: string): boolean
Parámetros
- commandId
-
string
- showUI
-
boolean
- value
-
string
Devoluciones
boolean
exitFullscreen()
El método exitFullscreen() Document solicita que el elemento de este documento que se presenta actualmente en modo de pantalla completa se sacará del modo de pantalla completa, restaurando el estado anterior de la pantalla.
function exitFullscreen(): Promise<void>
Devoluciones
Promise<void>
exitPictureInPicture()
El exitPictureInPicture() método de la interfaz Document solicita que un vídeo contenido en este documento, que actualmente está flotante, se salga del modo de imagen en imagen, restaurando el estado anterior de la pantalla.
function exitPictureInPicture(): Promise<void>
Devoluciones
Promise<void>
exitPointerLock()
El exitPointerLock() método de la interfaz Document libera de forma asincrónica un bloqueo de puntero solicitado previamente a través de Element.requestPointerLock.
function exitPointerLock()
getElementById(string)
Devuelve el primer elemento dentro de los descendientes del nodo cuyo identificador es elementId.
function getElementById(elementId: string): HTMLElement | null
Parámetros
- elementId
-
string
Devoluciones
HTMLElement | null
getElementsByClassName(string)
Método getElementsByClassName de todos los elementos secundarios que tienen todos los nombres de clase especificados.
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
Parámetros
- classNames
-
string
Devoluciones
HTMLCollectionOf<Element>
getElementsByName(string)
El getElementsByName() método del objeto Document devuelve una colección NodeList de elementos con un atributo determinado name en el documento.
function getElementsByName(elementName: string): NodeListOf<HTMLElement>
Parámetros
- elementName
-
string
Devoluciones
NodeListOf<HTMLElement>
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
Parámetros
- qualifiedName
-
string
Devoluciones
HTMLCollectionOf<Element>
getElementsByTagName<K>(K)
Se getElementsByTagName busca el método del documento completo, incluido el nodo raíz.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<HTMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<SVGElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<MathMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
Advertencia
Esta API ya está en desuso.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>
Parámetros
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- localName
-
string
Devoluciones
HTMLCollectionOf<MathMLElement>
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
Devuelve una lista de elementos con el nombre de etiqueta especificado que pertenece al espacio de nombres especificado.
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
Parámetros
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
Devoluciones
HTMLCollectionOf<HTMLElement>
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
Parámetros
- namespaceURI
-
"http://www.w3.org/2000/svg"
- localName
-
string
Devoluciones
HTMLCollectionOf<SVGElement>
getElementsByTagNameNS(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
Parámetros
- namespace
-
string | null
- localName
-
string
Devoluciones
HTMLCollectionOf<Element>
getSelection()
El getSelection() método de la interfaz Document devuelve el objeto Selection asociado a este documento, que representa el intervalo de texto seleccionado por el usuario o la posición actual del símbolo de intercalación.
function getSelection(): Selection | null
Devoluciones
Selection | null
hasFocus()
El hasFocus() método de la interfaz Document devuelve un valor booleano que indica si el documento o cualquier elemento del documento tiene el foco.
function hasFocus(): boolean
Devoluciones
boolean
hasStorageAccess()
El hasStorageAccess() método de la interfaz Document devuelve una promesa que se resuelve con un valor booleano que indica si el documento tiene acceso a cookies de terceros sin particionar.
function hasStorageAccess(): Promise<boolean>
Devoluciones
Promise<boolean>
importNode<T>(T, boolean | ImportNodeOptions)
El método del importNode() objeto Document crea una copia de un elemento insertado en el documento actual más adelante.
function importNode<T>(node: T, options?: boolean | ImportNodeOptions): T
Parámetros
- node
-
T
- options
-
boolean | ImportNodeOptions
Devoluciones
T
open(string | URL, string, string)
function open(url: string | URL, name: string, features: string): Window | null
Parámetros
- url
-
string | URL
- name
-
string
- features
-
string
Devoluciones
Window | null
open(string, string)
El Document.open() método abre un documento para Esto viene con algunos efectos secundarios.
function open(unused1?: string, unused2?: string): Document
Parámetros
- unused1
-
string
- unused2
-
string
Devoluciones
queryCommandEnabled(string)
El Document.queryCommandEnabled() método informa de si el explorador habilita o no el comando del editor especificado.
function queryCommandEnabled(commandId: string): boolean
Parámetros
- commandId
-
string
Devoluciones
boolean
queryCommandIndeterm(string)
Advertencia
Esta API ya está en desuso.
function queryCommandIndeterm(commandId: string): boolean
Parámetros
- commandId
-
string
Devoluciones
boolean
queryCommandState(string)
El queryCommandState() método le indicará si la selección actual tiene aplicado un determinado comando Document.execCommand().
function queryCommandState(commandId: string): boolean
Parámetros
- commandId
-
string
Devoluciones
boolean
queryCommandSupported(string)
El Document.queryCommandSupported() método informa de si el explorador admite o no el comando del editor especificado.
function queryCommandSupported(commandId: string): boolean
Parámetros
- commandId
-
string
Devoluciones
boolean
queryCommandValue(string)
Advertencia
Esta API ya está en desuso.
function queryCommandValue(commandId: string): string
Parámetros
- commandId
-
string
Devoluciones
string
releaseEvents()
Advertencia
Esta API ya está en desuso.
function releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parámetros
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)
El removeEventListener() método de la interfaz EventTarget quita un agente de escucha de eventos registrado previamente con EventTarget.addEventListener() del destino.
function removeEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parámetros
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | EventListenerOptions
requestStorageAccess()
El requestStorageAccess() método de la interfaz Document permite que el contenido cargado en un contexto de terceros (es decir, incrustado en un iframe) solicite acceso a cookies de terceros y estado no particionado.
function requestStorageAccess(): Promise<void>
Devoluciones
Promise<void>
startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)
El startViewTransition() método de la interfaz Document inicia una nueva transición de vista del mismo documento (SPA) y devuelve un objeto ViewTransition para representarlo.
function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition
Parámetros
- callbackOptions
-
ViewTransitionUpdateCallback | StartViewTransitionOptions
Devoluciones
ViewTransition
write(string[])
El write() método de la interfaz Document escribe texto en uno o varios parámetros trustedHTML o string en una secuencia de documentos abierta por document.open().
function write(text: string[])
Parámetros
- text
-
string[]
writeln(string[])
El writeln() método de la interfaz Document escribe texto en uno o varios parámetros trustedHTML o string en una secuencia de documentos abierta por document.open(), seguida de un carácter de nueva línea.
function writeln(text: string[])
Parámetros
- text
-
string[]
Detalles de los métodos heredados
append((string | Node)[])
Inserta nodos después del último elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function append(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
heredado de ParentNode.append
appendChild<T>(T)
El appendChild() método de la interfaz Node agrega un nodo al final de la lista de elementos secundarios de un nodo primario especificado.
function appendChild<T>(node: T): T
Parámetros
- node
-
T
Devoluciones
T
Heredado de Node.appendChild
cloneNode(boolean)
El cloneNode() método de la interfaz Node devuelve un duplicado del nodo en el que se llamó a este método.
function cloneNode(subtree?: boolean): Node
Parámetros
- subtree
-
boolean
Devoluciones
Node
Heredado de Node.cloneNode
compareDocumentPosition(Node)
El compareDocumentPosition() método de la interfaz Node informa de la posición de su nodo de argumento en relación con el nodo en el que se llama.
function compareDocumentPosition(other: Node): number
Parámetros
- other
-
Node
Devoluciones
number
Heredado de Node.compareDocumentPosition
contains(Node | null)
El contains() método de la interfaz Node devuelve un valor booleano que indica si un nodo es descendiente de un nodo determinado, es decir, el propio nodo, uno de sus elementos secundarios directos (Node.childNodes), uno de los elementos secundarios directos de los elementos secundarios, etc.
function contains(other: Node | null): boolean
Parámetros
- other
-
Node | null
Devoluciones
boolean
Heredar de Node.contains
createExpression(string, XPathNSResolver | null)
function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression
Parámetros
- expression
-
string
- resolver
-
XPathNSResolver | null
Devoluciones
XPathExpression
heredado de XPathEvaluatorBase.createExpression
createNSResolver(Node)
function createNSResolver(nodeResolver: Node): Node
Parámetros
- nodeResolver
-
Node
Devoluciones
Node
heredado de XPathEvaluatorBase.createNSResolver
dispatchEvent(Event)
El dispatchEvent() método de EventTarget envía un evento al objeto , (sincrónicamente) invocando a los agentes de escucha de eventos afectados en el orden adecuado.
function dispatchEvent(event: Event): boolean
Parámetros
- event
-
Event
Devoluciones
boolean
Heredado de Node.dispatchEvent
elementFromPoint(number, number)
function elementFromPoint(x: number, y: number): Element | null
Parámetros
- x
-
number
- y
-
number
Devoluciones
Element | null
Heredado de DocumentOrShadowRoot.elementFromPoint
elementsFromPoint(number, number)
function elementsFromPoint(x: number, y: number): Element[]
Parámetros
- x
-
number
- y
-
number
Devoluciones
Element[]
Heredado de DocumentOrShadowRoot.elementsFromPoint
evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)
function evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult
Parámetros
- expression
-
string
- contextNode
-
Node
- resolver
-
XPathNSResolver | null
- type
-
number
- result
-
XPathResult | null
Devoluciones
XPathResult
Heredado de XPathEvaluatorBase.evaluate
getAnimations()
function getAnimations(): Animation[]
Devoluciones
Animation[]
Heredado de DocumentOrShadowRoot.getAnimations
getRootNode(GetRootNodeOptions)
El getRootNode() método de la interfaz Node devuelve la raíz del objeto de contexto, que opcionalmente incluye la raíz de sombra si está disponible.
function getRootNode(options?: GetRootNodeOptions): Node
Parámetros
- options
-
GetRootNodeOptions
Devoluciones
Node
Heredado de Node.getRootNode
hasChildNodes()
El hasChildNodes() método de la interfaz Node devuelve un valor booleano que indica si el nodo especificado tiene nodos secundarios o no.
function hasChildNodes(): boolean
Devoluciones
boolean
Heredado de Node.hasChildNodes
insertBefore<T>(T, Node | null)
El insertBefore() método de la interfaz Node inserta un nodo antes de un nodo de referencia como elemento secundario de un nodo primario especificado.
function insertBefore<T>(node: T, child: Node | null): T
Parámetros
- node
-
T
- child
-
Node | null
Devoluciones
T
Heredado de Node.insertBefore
isDefaultNamespace(string | null)
El isDefaultNamespace() método de la interfaz Node acepta un URI de espacio de nombres como argumento.
function isDefaultNamespace(namespace: string | null): boolean
Parámetros
- namespace
-
string | null
Devoluciones
boolean
Heredado de Node.isDefaultNamespace
isEqualNode(Node | null)
El isEqualNode() método de la interfaz Node comprueba si dos nodos son iguales.
function isEqualNode(otherNode: Node | null): boolean
Parámetros
- otherNode
-
Node | null
Devoluciones
boolean
Heredado de Node.isEqualNode
isSameNode(Node | null)
El isSameNode() método de la interfaz Node es un alias heredado para el === operador de igualdad estricto.
function isSameNode(otherNode: Node | null): boolean
Parámetros
- otherNode
-
Node | null
Devoluciones
boolean
Heredado de Node.isSameNode
lookupNamespaceURI(string | null)
El lookupNamespaceURI() método de la interfaz Node toma un prefijo como parámetro y devuelve el URI del espacio de nombres asociado al nodo especificado si se encuentra (y null si no es así).
function lookupNamespaceURI(prefix: string | null): string | null
Parámetros
- prefix
-
string | null
Devoluciones
string | null
heredado de Node.lookupNamespaceURI
lookupPrefix(string | null)
El lookupPrefix() método de la interfaz Node devuelve una cadena que contiene el prefijo para un URI de espacio de nombres determinado, si está presente y null , si no.
function lookupPrefix(namespace: string | null): string | null
Parámetros
- namespace
-
string | null
Devoluciones
string | null
Heredado de Node.lookupPrefix
normalize()
El normalize() método de la interfaz Node coloca el nodo especificado y todo su subárbol en un formulario normalizado .
function normalize()
heredado de Node.normalize
prepend((string | Node)[])
Inserta nodos antes del primer elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function prepend(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
heredado de ParentNode.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): E | null
Parámetros
- selectors
-
string
Devoluciones
E | null
Heredado de ParentNode.querySelector
querySelector<K>(K)
Devuelve el primer elemento que es un descendiente del nodo que coincide con los selectores.
function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
HTMLElementTagNameMap[K] | null
Heredado de ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
SVGElementTagNameMap[K] | null
Heredado de ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
MathMLElementTagNameMap[K] | null
Heredado de ParentNode.querySelector
querySelector<K>(K)
Advertencia
Esta API ya está en desuso.
function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
HTMLElementDeprecatedTagNameMap[K] | null
Heredado de ParentNode.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
Parámetros
- selectors
-
string
Devoluciones
NodeListOf<E>
Heredado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
Devuelve todos los descendientes de elementos del nodo que coinciden con los selectores.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<HTMLElementTagNameMap[K]>
Heredado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<SVGElementTagNameMap[K]>
Heredado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<MathMLElementTagNameMap[K]>
Heredado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
Advertencia
Esta API ya está en desuso.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Heredado de ParentNode.querySelectorAll
removeChild<T>(T)
El removeChild() método de la interfaz Node quita un nodo secundario del DOM y devuelve el nodo quitado.
function removeChild<T>(child: T): T
Parámetros
- child
-
T
Devoluciones
T
Heredado de Node.removeChild
replaceChild<T>(Node, T)
El replaceChild() método de la interfaz Node reemplaza un nodo secundario dentro del nodo especificado (primario).
function replaceChild<T>(node: Node, child: T): T
Parámetros
- node
-
Node
- child
-
T
Devoluciones
T
Heredado de Node.replaceChild
replaceChildren((string | Node)[])
Reemplace todos los elementos secundarios del nodo por nodos, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function replaceChildren(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
Heredado de ParentNode.replaceChildren