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.

Referencia de MDN

Extends

Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase

Propiedades

alinkColor

Devuelve o establece el color de un vínculo activo en el cuerpo del documento.

all

La propiedad de solo all lectura de la interfaz Document devuelve un HTMLAllCollection rooteado en el nodo del documento.

anchors

Propiedad anchors de solo lectura de An HTMLCollection.

applets

La applets propiedad del documento devuelve un HTMLCollection vacío.

bgColor

La propiedad en desuso bgColor obtiene o establece el color de fondo del documento actual.

body

La Document.body propiedad representa null si no existe este elemento.

Referencia de MDN

characterSet

La Document.characterSet propiedad de solo lectura devuelve la codificación de caracteres del documento con la que se representa actualmente.

Referencia de MDN

charset
compatMode

La Document.compatMode propiedad de solo lectura indica si el documento se representa en modo Quirks o en modo Estándar.

Referencia de MDN

contentType

La Document.contentType propiedad de solo lectura devuelve el tipo MIME que el documento se representa como.

Referencia de MDN

cookie

La propiedad cookie Document le permite leer y escribir cookies asociadas al documento.

Referencia de MDN

currentScript

La Document.currentScript propiedad devuelve el elemento de script cuyo script se está procesando actualmente y no es un módulo de JavaScript.

Referencia de MDN

defaultView

En los exploradores, document.defaultView devuelve la propiedad This is read-only.

Referencia de MDN

designMode

document.designMode controla si se puede editar todo el documento.

Referencia de MDN

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.

Referencia de MDN

doctype

La doctype propiedad de solo lectura de la interfaz Document es un objeto DocumentType que representa el doctype asociado al documento actual.

Referencia de MDN

documentElement

La documentElement propiedad de solo lectura de la interfaz Document devuelve el ejemplo, el elemento html para documentos HTML).

Referencia de MDN

documentURI

Propiedad documentURI de solo lectura de la cadena A.

Referencia de MDN

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.

embeds

Propiedad embeds de solo lectura de An HTMLCollection.

Referencia de MDN

fgColor

fgColor obtiene o establece el color de primer plano o el color del texto del documento actual.

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.

Referencia de MDN

fragmentDirective

La fragmentDirective propiedad de solo lectura de la interfaz Document devuelve fragmentDirective para el documento actual.

Referencia de MDN

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.

fullscreenEnabled

La propiedad de solo fullscreenEnabled lectura de la interfaz Document indica si el modo de pantalla completa está disponible o no.

Referencia de MDN

head

La head propiedad de solo lectura de la interfaz Document devuelve el elemento principal del documento actual.

Referencia de MDN

hidden

La Document.hidden propiedad de solo lectura devuelve un valor booleano que indica si la página se considera oculta o no.

Referencia de MDN

images

La images propiedad de solo lectura de la interfaz Document devuelve una colección de las imágenes del documento HTML actual.

Referencia de MDN

implementation

La Document.implementation propiedad devuelve un objeto DOMImplementation.

Referencia de MDN

inputEncoding
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.

Referencia de MDN

linkColor

La Document.linkColor propiedad obtiene o establece el color de los vínculos dentro del documento.

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.

Referencia de MDN

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.

Referencia de MDN

mozCancelFullScreen
msExitFullscreen
onfullscreenchange

Referencia de MDN

onfullscreenerror

Referencia de MDN

onpointerlockchange

Referencia de MDN

onpointerlockerror

Referencia de MDN

onreadystatechange

Referencia de MDN

onvisibilitychange

Referencia de MDN

ownerDocument

La propiedad de solo ownerDocument lectura de la interfaz Node devuelve el objeto de documento de nivel superior del nodo.

Referencia de MDN

pictureInPictureEnabled

Propiedad de solo pictureInPictureEnabled lectura de la propiedad disponible.

Referencia de MDN

plugins

Propiedad plugins de solo lectura del objeto que contiene uno o varios HTMLEmbedElements que representa an HTMLCollection.

Referencia de MDN

readyState

La Document.readyState propiedad describe el estado de carga del documento.

Referencia de MDN

referrer

La Document.referrer propiedad devuelve el URI de la página vinculada a esta página.

Referencia de MDN

rootElement

Document.rootElement devuelve el elemento que es el elemento raíz del documento si es un documento.

scripts

La scripts propiedad de la interfaz Document devuelve una lista de los elementos de script del documento.

Referencia de MDN

scrollingElement

La scrollingElement propiedad de solo lectura del documento se desplaza.

Referencia de MDN

textContent

Referencia de MDN

timeline

La timeline propiedad readonly de la interfaz Document representa la escala de tiempo predeterminada del documento actual.

Referencia de MDN

title

La document.title propiedad obtiene o establece el título actual del documento.

Referencia de MDN

URL

La URL propiedad de solo lectura de la interfaz Document devuelve la ubicación del documento como una cadena.

Referencia de MDN

visibilityState

La Document.visibilityState propiedad de solo lectura devuelve la visibilidad del documento.

Referencia de MDN

vlinkColor

La Document.vlinkColor propiedad obtiene o establece el color de los vínculos que el usuario ha visitado en el documento.

webkitExitFullscreen

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.

Referencia de MDN

adoptedStyleSheets

Referencia de MDN

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.

Referencia de MDN

CDATA_SECTION_NODE

node es un nodo CDATASection.

childElementCount

Referencia de MDN

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.

Referencia de MDN

children

Devuelve los elementos secundarios.

Referencia de MDN

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
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.

Referencia de MDN

firstElementChild

Devuelve el primer elemento secundario que es un elemento y null en caso contrario.

Referencia de MDN

fonts

Referencia de MDN

fullscreenElement

Devuelve el elemento de pantalla completa del documento.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

lastElementChild

Devuelve el último elemento secundario que es un elemento y null en caso contrario.

Referencia de MDN

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.

Referencia de MDN

nodeName

La propiedad de solo nodeName lectura de Node devuelve el nombre del nodo actual como una cadena.

Referencia de MDN

nodeType

La propiedad de solo nodeType lectura de una interfaz Node es un entero que identifica lo que es el nodo.

Referencia de MDN

nodeValue

La nodeValue propiedad de la interfaz Node devuelve o establece el valor del nodo actual.

Referencia de MDN

NOTATION_NODE
onabort

Referencia de MDN

onanimationcancel

Referencia de MDN

onanimationend

Referencia de MDN

onanimationiteration

Referencia de MDN

onanimationstart

Referencia de MDN

onauxclick

Referencia de MDN

onbeforeinput

Referencia de MDN

onbeforematch

Referencia de MDN

onbeforetoggle

Referencia de MDN

onblur

Referencia de MDN

oncancel

Referencia de MDN

oncanplay

Referencia de MDN

oncanplaythrough

Referencia de MDN

onchange

Referencia de MDN

onclick

Referencia de MDN

onclose

Referencia de MDN

oncontextlost

Referencia de MDN

oncontextmenu

Referencia de MDN

oncontextrestored

Referencia de MDN

oncopy

Referencia de MDN

oncuechange

Referencia de MDN

oncut

Referencia de MDN

ondblclick

Referencia de MDN

ondrag

Referencia de MDN

ondragend

Referencia de MDN

ondragenter

Referencia de MDN

ondragleave

Referencia de MDN

ondragover

Referencia de MDN

ondragstart

Referencia de MDN

ondrop

Referencia de MDN

ondurationchange

Referencia de MDN

onemptied

Referencia de MDN

onended

Referencia de MDN

onerror

Referencia de MDN

onfocus

Referencia de MDN

onformdata

Referencia de MDN

ongotpointercapture

Referencia de MDN

oninput

Referencia de MDN

oninvalid

Referencia de MDN

onkeydown

Referencia de MDN

onkeypress
onkeyup

Referencia de MDN

onload

Referencia de MDN

onloadeddata

Referencia de MDN

onloadedmetadata

Referencia de MDN

onloadstart

Referencia de MDN

onlostpointercapture

Referencia de MDN

onmousedown

Referencia de MDN

onmouseenter

Referencia de MDN

onmouseleave

Referencia de MDN

onmousemove

Referencia de MDN

onmouseout

Referencia de MDN

onmouseover

Referencia de MDN

onmouseup

Referencia de MDN

onpaste

Referencia de MDN

onpause

Referencia de MDN

onplay

Referencia de MDN

onplaying

Referencia de MDN

onpointercancel

Referencia de MDN

onpointerdown

Referencia de MDN

onpointerenter

Referencia de MDN

onpointerleave

Referencia de MDN

onpointermove

Referencia de MDN

onpointerout

Referencia de MDN

onpointerover

Referencia de MDN

onpointerrawupdate

Solo está disponible en contextos seguros.

Referencia de MDN

onpointerup

Referencia de MDN

onprogress

Referencia de MDN

onratechange

Referencia de MDN

onreset

Referencia de MDN

onresize

Referencia de MDN

onscroll

Referencia de MDN

onscrollend

Referencia de MDN

onsecuritypolicyviolation

Referencia de MDN

onseeked

Referencia de MDN

onseeking

Referencia de MDN

onselect

Referencia de MDN

onselectionchange

Referencia de MDN

onselectstart

Referencia de MDN

onslotchange

Referencia de MDN

onstalled

Referencia de MDN

onsubmit

Referencia de MDN

onsuspend

Referencia de MDN

ontimeupdate

Referencia de MDN

ontoggle

Referencia de MDN

ontouchcancel

Referencia de MDN

ontouchend

Referencia de MDN

ontouchmove

Referencia de MDN

ontouchstart

Referencia de MDN

ontransitioncancel

Referencia de MDN

ontransitionend

Referencia de MDN

ontransitionrun

Referencia de MDN

ontransitionstart

Referencia de MDN

onvolumechange

Referencia de MDN

onwaiting

Referencia de MDN

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel

Referencia de MDN

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.

Referencia de MDN

parentNode

La propiedad de solo parentNode lectura de la interfaz Node devuelve el elemento primario del nodo especificado en el árbol DOM.

Referencia de MDN

pictureInPictureElement

Referencia de MDN

pointerLockElement

Referencia de MDN

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.

Referencia de MDN

PROCESSING_INSTRUCTION_NODE

node es un nodo ProcessingInstruction.

styleSheets

Referencia de MDN

TEXT_NODE

node es un nodo Text.

Métodos

addEventListener(string, EventListenerOrEventListenerObject, 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.

Referencia de MDN

adoptNode<T>(T)

Document.adoptNode() transfiere un nodo o dom de otro documento al documento del método.

Referencia de MDN

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.

Referencia de MDN

caretRangeFromPoint(number, number)
clear()

El Document.clear() método no hace nada, pero no genera ningún error.

close()

El Document.close() método termina de escribir en un documento, abierto con Document.open().

Referencia de MDN

createAttribute(string)

El Document.createAttribute() método crea un nuevo nodo de atributo y lo devuelve.

Referencia de MDN

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.

Referencia de MDN

createCDATASection(string)

createCDATASection() crea un nuevo nodo de sección CDATA y lo devuelve.

Referencia de MDN

createComment(string)

createComment() crea un nuevo nodo de comentario y lo devuelve.

Referencia de MDN

createDocumentFragment()

Crea un nuevo DocumentFragment vacío en el que se pueden agregar nodos DOM para crear un árbol DOM fuera de pantalla.

Referencia de MDN

createElement(string, ElementCreationOptions)
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.

Referencia de MDN

createElement<K>(K, ElementCreationOptions)
createElementNS("http://www.w3.org/1998/Math/MathML", string)
createElementNS("http://www.w3.org/1999/xhtml", string)

Crea un elemento con el URI de espacio de nombres especificado y el nombre completo.

Referencia de MDN

createElementNS("http://www.w3.org/2000/svg", string)
createElementNS(string | null, string, ElementCreationOptions)
createElementNS(string | null, string, string | ElementCreationOptions)
createElementNS<K>("http://www.w3.org/1998/Math/MathML", K)
createElementNS<K>("http://www.w3.org/2000/svg", K)
createEvent("AnimationEvent")

Crea un evento del tipo especificado.

createEvent("AnimationPlaybackEvent")
createEvent("AudioProcessingEvent")
createEvent("BeforeUnloadEvent")
createEvent("BlobEvent")
createEvent("ClipboardEvent")
createEvent("CloseEvent")
createEvent("CompositionEvent")
createEvent("ContentVisibilityAutoStateChangeEvent")
createEvent("CookieChangeEvent")
createEvent("CustomEvent")
createEvent("DeviceMotionEvent")
createEvent("DeviceOrientationEvent")
createEvent("DragEvent")
createEvent("ErrorEvent")
createEvent("Event")
createEvent("Events")
createEvent("FocusEvent")
createEvent("FontFaceSetLoadEvent")
createEvent("FormDataEvent")
createEvent("GamepadEvent")
createEvent("HashChangeEvent")
createEvent("IDBVersionChangeEvent")
createEvent("InputEvent")
createEvent("KeyboardEvent")
createEvent("MediaEncryptedEvent")
createEvent("MediaKeyMessageEvent")
createEvent("MediaQueryListEvent")
createEvent("MediaStreamTrackEvent")
createEvent("MessageEvent")
createEvent("MIDIConnectionEvent")
createEvent("MIDIMessageEvent")
createEvent("MouseEvent")
createEvent("MouseEvents")
createEvent("OfflineAudioCompletionEvent")
createEvent("PageRevealEvent")
createEvent("PageSwapEvent")
createEvent("PageTransitionEvent")
createEvent("PaymentMethodChangeEvent")
createEvent("PaymentRequestUpdateEvent")
createEvent("PictureInPictureEvent")
createEvent("PointerEvent")
createEvent("PopStateEvent")
createEvent("ProgressEvent")
createEvent("PromiseRejectionEvent")
createEvent("RTCDataChannelEvent")
createEvent("RTCDTMFToneChangeEvent")
createEvent("RTCErrorEvent")
createEvent("RTCPeerConnectionIceErrorEvent")
createEvent("RTCPeerConnectionIceEvent")
createEvent("RTCTrackEvent")
createEvent("SecurityPolicyViolationEvent")
createEvent("SpeechSynthesisErrorEvent")
createEvent("SpeechSynthesisEvent")
createEvent("StorageEvent")
createEvent("SubmitEvent")
createEvent("TextEvent")
createEvent("ToggleEvent")
createEvent("TouchEvent")
createEvent("TrackEvent")
createEvent("TransitionEvent")
createEvent("UIEvent")
createEvent("UIEvents")
createEvent("WebGLContextEvent")
createEvent("WheelEvent")
createEvent(string)
createNodeIterator(Node, number, NodeFilter | null)

El Document.createNodeIterator() método devuelve un nuevo NodeIterator objeto.

Referencia de MDN

createProcessingInstruction(string, string)

createProcessingInstruction() genera un nuevo nodo de instrucción de procesamiento y lo devuelve.

Referencia de MDN

createRange()

El Document.createRange() método devuelve un nuevo js-nolint createRange() none.

Referencia de MDN

createTextNode(string)

Crea un nuevo nodo Text.

Referencia de MDN

createTreeWalker(Node, number, NodeFilter | null)

El Document.createTreeWalker() método creator devuelve un objeto TreeWalker recién creado.

Referencia de MDN

execCommand(string, boolean, string)

El execCommand método implementa varios comandos diferentes.

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

getElementById(string)

Devuelve el primer elemento dentro de los descendientes del nodo cuyo identificador es elementId.

Referencia de MDN

getElementsByClassName(string)

Método getElementsByClassName de todos los elementos secundarios que tienen todos los nombres de clase especificados.

Referencia de MDN

getElementsByName(string)

El getElementsByName() método del objeto Document devuelve una colección NodeList de elementos con un atributo determinado name en el documento.

Referencia de MDN

getElementsByTagName(string)
getElementsByTagName<K>(K)

Se getElementsByTagName busca el método del documento completo, incluido el nodo raíz.

Referencia de MDN

getElementsByTagName<K>(K)
getElementsByTagName<K>(K)
getElementsByTagName<K>(K)
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
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.

Referencia de MDN

getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
getElementsByTagNameNS(string | null, string)
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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

open(string | URL, string, string)
open(string, string)

El Document.open() método abre un documento para Esto viene con algunos efectos secundarios.

Referencia de MDN

queryCommandEnabled(string)

El Document.queryCommandEnabled() método informa de si el explorador habilita o no el comando del editor especificado.

queryCommandIndeterm(string)
queryCommandState(string)

El queryCommandState() método le indicará si la selección actual tiene aplicado un determinado comando Document.execCommand().

queryCommandSupported(string)

El Document.queryCommandSupported() método informa de si el explorador admite o no el comando del editor especificado.

queryCommandValue(string)
releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, 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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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().

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

cloneNode(boolean)

El cloneNode() método de la interfaz Node devuelve un duplicado del nodo en el que se llamó a este método.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

createExpression(string, XPathNSResolver | null)

Referencia de MDN

createNSResolver(Node)
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.

Referencia de MDN

elementFromPoint(number, number)
elementsFromPoint(number, number)
evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)

Referencia de MDN

getAnimations()

Referencia de MDN

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.

Referencia de MDN

hasChildNodes()

El hasChildNodes() método de la interfaz Node devuelve un valor booleano que indica si el nodo especificado tiene nodos secundarios o no.

Referencia de MDN

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.

Referencia de MDN

isDefaultNamespace(string | null)

El isDefaultNamespace() método de la interfaz Node acepta un URI de espacio de nombres como argumento.

Referencia de MDN

isEqualNode(Node | null)

El isEqualNode() método de la interfaz Node comprueba si dos nodos son iguales.

Referencia de MDN

isSameNode(Node | null)

El isSameNode() método de la interfaz Node es un alias heredado para el === operador de igualdad estricto.

Referencia de MDN

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í).

Referencia de MDN

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.

Referencia de MDN

normalize()

El normalize() método de la interfaz Node coloca el nodo especificado y todo su subárbol en un formulario normalizado .

Referencia de MDN

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.

Referencia de MDN

querySelector<E>(string)
querySelector<K>(K)

Devuelve el primer elemento que es un descendiente del nodo que coincide con los selectores.

Referencia de MDN

querySelector<K>(K)
querySelector<K>(K)
querySelector<K>(K)
querySelectorAll<E>(string)
querySelectorAll<K>(K)

Devuelve todos los descendientes de elementos del nodo que coinciden con los selectores.

Referencia de MDN

querySelectorAll<K>(K)
querySelectorAll<K>(K)
querySelectorAll<K>(K)
removeChild<T>(T)

El removeChild() método de la interfaz Node quita un nodo secundario del DOM y devuelve el nodo quitado.

Referencia de MDN

replaceChild<T>(Node, T)

El replaceChild() método de la interfaz Node reemplaza un nodo secundario dentro del nodo especificado (primario).

Referencia de MDN

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.

Referencia de MDN

Detalles de las propiedades

alinkColor

Advertencia

Esta API ya está en desuso.

MDN Reference

Devuelve o establece el color de un vínculo activo en el cuerpo del documento.

alinkColor: string

Valor de propiedad

string

all

Advertencia

Esta API ya está en desuso.

MDN Reference

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

Advertencia

Esta API ya está en desuso.

MDN Reference

Propiedad anchors de solo lectura de An HTMLCollection.

anchors: HTMLCollectionOf<HTMLAnchorElement>

Valor de propiedad

HTMLCollectionOf<HTMLAnchorElement>

applets

Advertencia

Esta API ya está en desuso.

MDN Reference

La applets propiedad del documento devuelve un HTMLCollection vacío.

applets: HTMLCollection

Valor de propiedad

HTMLCollection

bgColor

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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.

Referencia de MDN

characterSet: string

Valor de propiedad

string

charset

Advertencia

Esta API ya está en desuso.

This is a legacy alias of characterSet.

MDN Reference

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.

Referencia de MDN

compatMode: string

Valor de propiedad

string

contentType

La Document.contentType propiedad de solo lectura devuelve el tipo MIME que el documento se representa como.

Referencia de MDN

contentType: string

Valor de propiedad

string

La propiedad cookie Document le permite leer y escribir cookies asociadas al documento.

Referencia de MDN

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.

Referencia de MDN

currentScript: HTMLOrSVGScriptElement | null

Valor de propiedad

HTMLOrSVGScriptElement | null

defaultView

En los exploradores, document.defaultView devuelve la propiedad This is read-only.

Referencia de MDN

defaultView: (Window & typeof globalThis) | null

Valor de propiedad

(Window & typeof globalThis) | null

designMode

document.designMode controla si se puede editar todo el documento.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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).

Referencia de MDN

documentElement: HTMLElement

Valor de propiedad

HTMLElement

documentURI

Propiedad documentURI de solo lectura de la cadena A.

Referencia de MDN

documentURI: string

Valor de propiedad

string

domain

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

embeds: HTMLCollectionOf<HTMLEmbedElement>

Valor de propiedad

HTMLCollectionOf<HTMLEmbedElement>

fgColor

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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.

Referencia de MDN

fragmentDirective: FragmentDirective

Valor de propiedad

FragmentDirective

fullscreen

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

fullscreenEnabled: boolean

Valor de propiedad

boolean

head

La head propiedad de solo lectura de la interfaz Document devuelve el elemento principal del documento actual.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

images: HTMLCollectionOf<HTMLImageElement>

Valor de propiedad

HTMLCollectionOf<HTMLImageElement>

implementation

La Document.implementation propiedad devuelve un objeto DOMImplementation.

Referencia de MDN

implementation: DOMImplementation

Valor de propiedad

DOMImplementation

inputEncoding

Advertencia

Esta API ya está en desuso.

This is a legacy alias of characterSet.

MDN Reference

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.

Referencia de MDN

lastModified: string

Valor de propiedad

string

linkColor

Advertencia

Esta API ya está en desuso.

MDN Reference

La Document.linkColor propiedad obtiene o establece el color de los vínculos dentro del documento.

linkColor: string

Valor de propiedad

string

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.

Referencia de MDN

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.

Referencia de MDN

Location location

Valor de propiedad

Location

mozCancelFullScreen

mozCancelFullScreen: any

Valor de propiedad

any

msExitFullscreen

msExitFullscreen: any

Valor de propiedad

any

onfullscreenchange

Referencia de MDN

onfullscreenchange: (this: Document, ev: Event) => any | null

Valor de propiedad

(this: Document, ev: Event) => any | null

onfullscreenerror

Referencia de MDN

onfullscreenerror: (this: Document, ev: Event) => any | null

Valor de propiedad

(this: Document, ev: Event) => any | null

onpointerlockchange

Referencia de MDN

onpointerlockchange: (this: Document, ev: Event) => any | null

Valor de propiedad

(this: Document, ev: Event) => any | null

onpointerlockerror

Referencia de MDN

onpointerlockerror: (this: Document, ev: Event) => any | null

Valor de propiedad

(this: Document, ev: Event) => any | null

onreadystatechange

Referencia de MDN

onreadystatechange: (this: Document, ev: Event) => any | null

Valor de propiedad

(this: Document, ev: Event) => any | null

onvisibilitychange

Referencia de MDN

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.

Referencia de MDN

ownerDocument: null

Valor de propiedad

null

pictureInPictureEnabled

Propiedad de solo pictureInPictureEnabled lectura de la propiedad disponible.

Referencia de MDN

pictureInPictureEnabled: boolean

Valor de propiedad

boolean

plugins

Propiedad plugins de solo lectura del objeto que contiene uno o varios HTMLEmbedElements que representa an HTMLCollection.

Referencia de MDN

plugins: HTMLCollectionOf<HTMLEmbedElement>

Valor de propiedad

HTMLCollectionOf<HTMLEmbedElement>

readyState

La Document.readyState propiedad describe el estado de carga del documento.

Referencia de MDN

readyState: DocumentReadyState

Valor de propiedad

DocumentReadyState

referrer

La Document.referrer propiedad devuelve el URI de la página vinculada a esta página.

Referencia de MDN

referrer: string

Valor de propiedad

string

rootElement

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

scripts: HTMLCollectionOf<HTMLScriptElement>

Valor de propiedad

HTMLCollectionOf<HTMLScriptElement>

scrollingElement

La scrollingElement propiedad de solo lectura del documento se desplaza.

Referencia de MDN

scrollingElement: Element | null

Valor de propiedad

Element | null

textContent

Referencia de MDN

null textContent

Valor de propiedad

null

timeline

La timeline propiedad readonly de la interfaz Document representa la escala de tiempo predeterminada del documento actual.

Referencia de MDN

timeline: DocumentTimeline

Valor de propiedad

DocumentTimeline

title

La document.title propiedad obtiene o establece el título actual del documento.

Referencia de MDN

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.

Referencia de MDN

URL: string

Valor de propiedad

string

visibilityState

La Document.visibilityState propiedad de solo lectura devuelve la visibilidad del documento.

Referencia de MDN

visibilityState: DocumentVisibilityState

Valor de propiedad

DocumentVisibilityState

vlinkColor

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

activeElement: Element | null

Valor de propiedad

Element | null

heredado de DocumentOrShadowRoot.activeElement

adoptedStyleSheets

Referencia de MDN

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.

Referencia de MDN

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

Referencia de MDN

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.

Referencia de MDN

childNodes: NodeListOf<ChildNode>

Valor de propiedad

NodeListOf<ChildNode>

Heredado de Node.childNodes

children

Devuelve los elementos secundarios.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

firstElementChild: Element | null

Valor de propiedad

Element | null

Heredado de ParentNode.firstElementChild

fonts

Referencia de MDN

fonts: FontFaceSet

Valor de propiedad

FontFaceSet

Heredado de FontFaceSource.fonts

fullscreenElement

Devuelve el elemento de pantalla completa del documento.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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

Referencia de MDN

onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: UIEvent) => any | null

heredado de GlobalEventHandlers.onabort

onanimationcancel

Referencia de MDN

onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

heredado de GlobalEventHandlers.onanimationcancel

onanimationend

Referencia de MDN

onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

heredado de GlobalEventHandlers.onanimationend

onanimationiteration

Referencia de MDN

onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

heredado de GlobalEventHandlers.onanimationiteration

onanimationstart

Referencia de MDN

onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

Heredado de GlobalEventHandlers.onanimationstart

onauxclick

Referencia de MDN

onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

Heredado de GlobalEventHandlers.onauxclick

onbeforeinput

Referencia de MDN

onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: InputEvent) => any | null

Heredado de GlobalEventHandlers.onbeforeinput

onbeforematch

Referencia de MDN

onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onbeforematch

onbeforetoggle

Referencia de MDN

onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: ToggleEvent) => any | null

Heredado de GlobalEventHandlers.onbeforetoggle

onblur

Referencia de MDN

onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: FocusEvent) => any | null

Heredado de GlobalEventHandlers.onblur

oncancel

Referencia de MDN

oncancel: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.oncancel

oncanplay

Referencia de MDN

oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.oncanplay

oncanplaythrough

Referencia de MDN

oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.oncanplaythrough

onchange

Referencia de MDN

onchange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onchange

onclick

Referencia de MDN

onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

heredado de GlobalEventHandlers.onclick

onclose

Referencia de MDN

onclose: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onclose

oncontextlost

Referencia de MDN

oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.oncontextlost

oncontextmenu

Referencia de MDN

oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

heredado de GlobalEventHandlers.oncontextmenu

oncontextrestored

Referencia de MDN

oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.oncontextrestored

oncopy

Referencia de MDN

oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

Heredado de GlobalEventHandlers.oncopy

oncuechange

Referencia de MDN

oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.oncuechange

oncut

Referencia de MDN

oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

Heredado de GlobalEventHandlers.oncut

ondblclick

Referencia de MDN

ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

Heredado de GlobalEventHandlers.ondblclick

ondrag

Referencia de MDN

ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

heredado de GlobalEventHandlers.ondrag

ondragend

Referencia de MDN

ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

heredado de GlobalEventHandlers.ondragend

ondragenter

Referencia de MDN

ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

heredado de GlobalEventHandlers.ondragenter

ondragleave

Referencia de MDN

ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

heredado de GlobalEventHandlers.ondragleave

ondragover

Referencia de MDN

ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

Heredado de GlobalEventHandlers.ondragover

ondragstart

Referencia de MDN

ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

heredado de GlobalEventHandlers.ondragstart

ondrop

Referencia de MDN

ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: DragEvent) => any | null

heredado de GlobalEventHandlers.ondrop

ondurationchange

Referencia de MDN

ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.ondurationchange

onemptied

Referencia de MDN

onemptied: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onemptied

onended

Referencia de MDN

onended: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onended

onerror

Referencia de MDN

onerror: OnErrorEventHandler

Valor de propiedad

OnErrorEventHandler

Heredado de GlobalEventHandlers.onerror

onfocus

Referencia de MDN

onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: FocusEvent) => any | null

heredado de GlobalEventHandlers.onfocus

onformdata

Referencia de MDN

onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: FormDataEvent) => any | null

Heredado de GlobalEventHandlers.onformdata

ongotpointercapture

Referencia de MDN

ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

Heredado de GlobalEventHandlers.ongotpointercapture

oninput

Referencia de MDN

oninput: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.oninput

oninvalid

Referencia de MDN

oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.oninvalid

onkeydown

Referencia de MDN

onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

Heredado de GlobalEventHandlers.onkeydown

onkeypress

Advertencia

Esta API ya está en desuso.

MDN Reference

onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

heredado de GlobalEventHandlers.onkeypress

onkeyup

Referencia de MDN

onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

heredado de GlobalEventHandlers.onkeyup

onload

Referencia de MDN

onload: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onload

onloadeddata

Referencia de MDN

onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

se hereda de GlobalEventHandlers.onloadeddata

onloadedmetadata

Referencia de MDN

onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onloadedmetadata

onloadstart

Referencia de MDN

onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onloadstart

onlostpointercapture

Referencia de MDN

onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

heredado de GlobalEventHandlers.onlostpointercapture

onmousedown

Referencia de MDN

onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

heredado de GlobalEventHandlers.onmousedown

onmouseenter

Referencia de MDN

onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

heredado de GlobalEventHandlers.onmouseenter

onmouseleave

Referencia de MDN

onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

Heredado de GlobalEventHandlers.onmouseleave

onmousemove

Referencia de MDN

onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

heredado de GlobalEventHandlers.onmousemove

onmouseout

Referencia de MDN

onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

heredado de GlobalEventHandlers.onmouseout

onmouseover

Referencia de MDN

onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

heredado de GlobalEventHandlers.onmouseover

onmouseup

Referencia de MDN

onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

Heredado de GlobalEventHandlers.onmouseup

onpaste

Referencia de MDN

onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

Heredado de GlobalEventHandlers.onpaste

onpause

Referencia de MDN

onpause: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onpause

onplay

Referencia de MDN

onplay: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

se hereda de GlobalEventHandlers.onplay

onplaying

Referencia de MDN

onplaying: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

se hereda de GlobalEventHandlers.onplaying

onpointercancel

Referencia de MDN

onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

Heredado de GlobalEventHandlers.onpointercancel

onpointerdown

Referencia de MDN

onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

heredado de GlobalEventHandlers.onpointerdown

onpointerenter

Referencia de MDN

onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

heredado de GlobalEventHandlers.onpointerenter

onpointerleave

Referencia de MDN

onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

Heredado de GlobalEventHandlers.onpointerleave

onpointermove

Referencia de MDN

onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

heredado de GlobalEventHandlers.onpointermove

onpointerout

Referencia de MDN

onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

se hereda de GlobalEventHandlers.onpointerout

onpointerover

Referencia de MDN

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.

Referencia de MDN

onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onpointerrawupdate

onpointerup

Referencia de MDN

onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

Se hereda de GlobalEventHandlers.onpointerup

onprogress

Referencia de MDN

onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: ProgressEvent) => any | null

Heredado de GlobalEventHandlers.onprogress

onratechange

Referencia de MDN

onratechange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onratechange

onreset

Referencia de MDN

onreset: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onreset

onresize

Referencia de MDN

onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: UIEvent) => any | null

se hereda de GlobalEventHandlers.onresize

onscroll

Referencia de MDN

onscroll: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onscroll

onscrollend

Referencia de MDN

onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onscrollend

onsecuritypolicyviolation

Referencia de MDN

onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null

heredado de GlobalEventHandlers.onsecuritypolicyviolation

onseeked

Referencia de MDN

onseeked: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onseeked

onseeking

Referencia de MDN

onseeking: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onseeking

onselect

Referencia de MDN

onselect: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Se hereda de GlobalEventHandlers.onselect

onselectionchange

Referencia de MDN

onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Se hereda de GlobalEventHandlers.onselectionchange

onselectstart

Referencia de MDN

onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onselectstart

onslotchange

Referencia de MDN

onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onslotchange

onstalled

Referencia de MDN

onstalled: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onstalled

onsubmit

Referencia de MDN

onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: SubmitEvent) => any | null

Heredado de GlobalEventHandlers.onsubmit

onsuspend

Referencia de MDN

onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onsuspend

ontimeupdate

Referencia de MDN

ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

se hereda de GlobalEventHandlers.ontimeupdate

ontoggle

Referencia de MDN

ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: ToggleEvent) => any | null

Se hereda de GlobalEventHandlers.ontoggle

ontouchcancel

Referencia de MDN

ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

heredado de GlobalEventHandlers.ontouchcancel

ontouchend

Referencia de MDN

ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

heredado de GlobalEventHandlers.ontouchend

ontouchmove

Referencia de MDN

ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

heredado de GlobalEventHandlers.ontouchmove

ontouchstart

Referencia de MDN

ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

Heredado de GlobalEventHandlers.ontouchstart

ontransitioncancel

Referencia de MDN

ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

heredado de GlobalEventHandlers.ontransitioncancel

ontransitionend

Referencia de MDN

ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

heredado de GlobalEventHandlers.ontransitionend

ontransitionrun

Referencia de MDN

ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

heredado de GlobalEventHandlers.ontransitionrun

ontransitionstart

Referencia de MDN

ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

Heredado de GlobalEventHandlers.ontransitionstart

onvolumechange

Referencia de MDN

onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Se hereda de GlobalEventHandlers.onvolumechange

onwaiting

Referencia de MDN

onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

se hereda de GlobalEventHandlers.onwaiting

onwebkitanimationend

Advertencia

Esta API ya está en desuso.

This is a legacy alias of onanimationend.

MDN Reference

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.

MDN Reference

onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onwebkitanimationiteration

onwebkitanimationstart

Advertencia

Esta API ya está en desuso.

This is a legacy alias of onanimationstart.

MDN Reference

onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

Heredado de GlobalEventHandlers.onwebkitanimationstart

onwebkittransitionend

Advertencia

Esta API ya está en desuso.

This is a legacy alias of ontransitionend.

MDN Reference

onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null

Valor de propiedad

(this: GlobalEventHandlers, ev: Event) => any | null

heredado de GlobalEventHandlers.onwebkittransitionend

onwheel

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

parentNode: ParentNode | null

Valor de propiedad

ParentNode | null

heredado de Node.parentNode

pictureInPictureElement

Referencia de MDN

pictureInPictureElement: Element | null

Valor de propiedad

Element | null

heredado de DocumentOrShadowRoot.pictureInPictureElement

pointerLockElement

Referencia de MDN

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.

Referencia de MDN

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

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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()

Advertencia

Esta API ya está en desuso.

MDN Reference

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().

Referencia de MDN

function close()

createAttribute(string)

El Document.createAttribute() método crea un nuevo nodo de atributo y lo devuelve.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

function createCDATASection(data: string): CDATASection

Parámetros

data

string

Devoluciones

CDATASection

createComment(string)

createComment() crea un nuevo nodo de comentario y lo devuelve.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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")

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

function createRange(): Range

Devoluciones

Range

createTextNode(string)

Crea un nuevo nodo Text.

Referencia de MDN

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.

Referencia de MDN

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)

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

function exitPointerLock()

getElementById(string)

Devuelve el primer elemento dentro de los descendientes del nodo cuyo identificador es elementId.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

function open(unused1?: string, unused2?: string): Document

Parámetros

unused1

string

unused2

string

Devoluciones

queryCommandEnabled(string)

Advertencia

Esta API ya está en desuso.

MDN Reference

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)

Advertencia

Esta API ya está en desuso.

MDN Reference

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)

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition

Parámetros

callbackOptions

ViewTransitionUpdateCallback | StartViewTransitionOptions

Devoluciones

ViewTransition

write(string[])

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

function contains(other: Node | null): boolean

Parámetros

other

Node | null

Devoluciones

boolean

Heredar de Node.contains

createExpression(string, XPathNSResolver | null)

Referencia de MDN

function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression

Parámetros

expression

string

resolver

XPathNSResolver | null

Devoluciones

XPathExpression

heredado de XPathEvaluatorBase.createExpression

createNSResolver(Node)

Advertencia

Esta API ya está en desuso.

MDN Reference

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.

Referencia de MDN

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)

Referencia de MDN

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()

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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í).

Referencia de MDN

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.

Referencia de MDN

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 .

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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.

Referencia de MDN

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).

Referencia de MDN

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.

Referencia de MDN

function replaceChildren(nodes: (string | Node)[])

Parámetros

nodes

(string | Node)[]

Heredado de ParentNode.replaceChildren