HTMLIFrameElement interface
Proporciona propiedades y métodos especiales (más allá de los de la interfaz HTMLElement que también tiene disponible por herencia) para manipular el diseño y la presentación de elementos de marco insertados.
- Extends
-
HTMLElement
Propiedades
align | Establece o recupera cómo se alinea el objeto con texto adyacente. |
allow | |
allow |
|
content |
Recupera el objeto de documento de la página o marco. |
content |
Recupera el objeto del especificado. |
frame |
Establece o recupera si se va a mostrar un borde para el marco. |
height | Establece o recupera el alto del objeto . |
long |
Establece o recupera un URI en una descripción larga del objeto. |
margin |
Establece o recupera los alto del margen superior e inferior antes de mostrar el texto en un marco. |
margin |
Establece o recupera los anchos de margen izquierdo y derecho antes de mostrar el texto en un marco. |
moz |
|
ms |
|
name | Establece o recupera el nombre del marco. |
referrer |
|
sandbox | |
scrolling | Establece o recupera si se puede desplazar el marco. |
src | Establece o recupera una dirección URL que va a cargar el objeto . |
srcdoc | Establece o reintenta el contenido de la página que se va a contener. |
webkit |
|
width | Establece o recupera el ancho del objeto . |
Propiedades heredadas
access |
|
access |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
aria |
|
assigned |
|
attributes | |
ATTRIBUTE_NODE | |
autocapitalize | |
autofocus | |
baseURI | Devuelve la dirección URL base del documento del nodo del nodo. |
CDATA_SECTION_NODE | node es un nodo CDATASection. |
child |
|
child |
Devuelve los elementos secundarios. |
children | Devuelve los elementos secundarios. |
class |
Permite la manipulación del atributo de contenido de clase del elemento como un conjunto de tokens separados por espacios en blanco a través de un objeto DOMTokenList. |
class |
Devuelve el valor del atributo de contenido de clase del elemento. Se puede establecer para cambiarlo. |
client |
|
client |
|
client |
|
client |
|
COMMENT_NODE | node es un nodo Comment. |
content |
|
dataset | |
dir | |
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. |
draggable | |
ELEMENT_NODE | node es un elemento . |
enter |
|
ENTITY_NODE | |
ENTITY_REFERENCE_NODE | |
first |
Devuelve el primer elemento secundario. |
first |
Devuelve el primer elemento secundario que es un elemento y null en caso contrario. |
hidden | |
id | Devuelve el valor del atributo de contenido id del elemento. Se puede establecer para cambiarlo. |
inert | |
innerHTML | |
inner |
|
input |
|
is |
Devuelve true si el nodo está conectado y false en caso contrario. |
is |
|
lang | |
last |
Devuelve el último elemento secundario. |
last |
Devuelve el último elemento secundario que es un elemento y null en caso contrario. |
local |
Devuelve el nombre local. |
namespaceURI | Devuelve el espacio de nombres. |
next |
Devuelve el primer elemento relacionado siguiente que es un elemento y null en caso contrario. |
next |
Devuelve el siguiente elemento del mismo nivel. |
node |
Devuelve una cadena adecuada para el tipo de nodo. |
node |
Devuelve el tipo de nodo. |
node |
|
nonce | |
NOTATION_NODE | |
offset |
|
offset |
|
offset |
|
offset |
|
offset |
|
onabort | Se desencadena cuando el usuario anula la descarga. |
onanimationcancel | |
onanimationend | |
onanimationiteration | |
onanimationstart | |
onauxclick | |
onbeforeinput | |
onblur | Se desencadena cuando el objeto pierde el foco de entrada. |
oncancel | |
oncanplay | Se produce cuando la reproducción es posible, pero requeriría un mayor almacenamiento en búfer. |
oncanplaythrough | |
onchange | Se desencadena cuando el contenido del objeto o la selección han cambiado. |
onclick | Se desencadena cuando el usuario hace clic en el botón izquierdo del mouse en el objeto |
onclose | |
oncontextmenu | Se desencadena cuando el usuario hace clic en el botón derecho del mouse en el área cliente, abriendo el menú contextual. |
oncopy | |
oncuechange | |
oncut | |
ondblclick | Se desencadena cuando el usuario hace doble clic en el objeto. |
ondrag | Se activa en el objeto de origen continuamente durante una operación de arrastre. |
ondragend | Se activa en el objeto de origen cuando el usuario suelta el mouse al cerrar una operación de arrastre. |
ondragenter | Se activa en el elemento de destino cuando el usuario arrastra el objeto a un destino de colocación válido. |
ondragleave | Se activa en el objeto de destino cuando el usuario mueve el mouse fuera de un destino de colocación válido durante una operación de arrastre. |
ondragover | Se activa en el elemento de destino continuamente mientras el usuario arrastra el objeto sobre un destino de colocación válido. |
ondragstart | Se activa en el objeto de origen cuando el usuario empieza a arrastrar una selección de texto o un objeto seleccionado. |
ondrop | |
ondurationchange | Se produce cuando se actualiza el atributo duration. |
onemptied | Se produce cuando el elemento multimedia se restablece a su estado inicial. |
onended | Se produce cuando se alcanza el final de la reproducción. |
onerror | Se desencadena cuando se produce un error durante la carga de objetos. |
onfocus | Se desencadena cuando el objeto recibe el foco. |
onformdata | |
onfullscreenchange | |
onfullscreenerror | |
ongotpointercapture | |
oninput | |
oninvalid | |
onkeydown | Se activa cuando el usuario presiona una tecla. |
onkeypress | Se activa cuando el usuario presiona una tecla alfanumérica. |
onkeyup | Se desencadena cuando el usuario libera una clave. |
onload | Se desencadena inmediatamente después de que el explorador cargue el objeto. |
onloadeddata | Se produce cuando los datos multimedia se cargan en la posición de reproducción actual. |
onloadedmetadata | Se produce cuando se han determinado la duración y las dimensiones del medio. |
onloadstart | Se produce cuando Internet Explorer comienza a buscar datos multimedia. |
onlostpointercapture | |
onmousedown | Se desencadena cuando el usuario hace clic en el objeto con cualquiera de los botones del mouse. |
onmouseenter | |
onmouseleave | |
onmousemove | Se desencadena cuando el usuario mueve el mouse sobre el objeto. |
onmouseout | Se desencadena cuando el usuario mueve el puntero del mouse fuera de los límites del objeto. |
onmouseover | Se desencadena cuando el usuario mueve el puntero del mouse al objeto . |
onmouseup | Se desencadena cuando el usuario suelta un botón del mouse mientras el mouse está sobre el objeto. |
onpaste | |
onpause | Se produce cuando la reproducción está en pausa. |
onplay | Se produce cuando se solicita el método play. |
onplaying | Se produce cuando se ha iniciado la reproducción del audio o el vídeo. |
onpointercancel | |
onpointerdown | |
onpointerenter | |
onpointerleave | |
onpointermove | |
onpointerout | |
onpointerover | |
onpointerup | |
onprogress | Se produce para indicar el progreso durante la descarga de datos multimedia. |
onratechange | Se produce cuando la velocidad de reproducción aumenta o disminuye. |
onreset | Se desencadena cuando el usuario restablece un formulario. |
onresize | |
onscroll | Se activa cuando el usuario cambia la posición del cuadro de desplazamiento en la barra de desplazamiento del objeto. |
onsecuritypolicyviolation | |
onseeked | Se produce cuando finaliza la operación de búsqueda. |
onseeking | Se produce cuando se mueve la posición de reproducción actual. |
onselect | Se activa cuando cambia la selección actual. |
onselectionchange | |
onselectstart | |
onslotchange | |
onstalled | Se produce cuando la descarga se ha detenido. |
onsubmit | |
onsuspend | Se produce si la operación de carga se ha detenido intencionadamente. |
ontimeupdate | Se produce para indicar la posición de reproducción actual. |
ontoggle | |
ontouchcancel | |
ontouchend | |
ontouchmove | |
ontouchstart | |
ontransitioncancel | |
ontransitionend | |
ontransitionrun | |
ontransitionstart | |
onvolumechange | Se produce cuando se cambia el volumen, o la reproducción se silencia o se desactiva. |
onwaiting | Se produce cuando la reproducción se detiene porque el siguiente fotograma de un recurso de vídeo no está disponible. |
onwebkitanimationend | |
onwebkitanimationiteration | |
onwebkitanimationstart | |
onwebkittransitionend | |
onwheel | |
outerHTML | |
outer |
|
owner |
|
parent |
Devuelve el elemento primario. |
parent |
Devuelve el elemento primario. |
part | |
prefix | Devuelve el prefijo del espacio de nombres. |
previous |
Devuelve el primer elemento relacionado anterior que es un elemento y null en caso contrario. |
previous |
Devuelve el elemento relacionado anterior. |
PROCESSING_INSTRUCTION_NODE | node es un nodo ProcessingInstruction. |
role | |
scroll |
|
scroll |
|
scroll |
|
scroll |
|
shadow |
Devuelve la raíz de sombra del elemento, si existe, y si el modo de la raíz de sombra es "abierto" y null en caso contrario. |
slot | Devuelve el valor del atributo de contenido de ranura del elemento. Se puede establecer para cambiarlo. |
spellcheck | |
style | |
tab |
|
tag |
Devuelve el nombre completo con mayúsculas HTML. |
text |
|
TEXT_NODE | node es un nodo Text. |
title | |
translate |
Métodos
Métodos heredados
after((string | Node)[]) | Inserta nodos justo después del nodo, mientras reemplaza las cadenas en los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
animate(null | Keyframe[] | Property |
|
append((string | Node)[]) | Inserta nodos después del último elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
append |
|
attach |
|
attach |
Crea una raíz de sombra para el elemento y la devuelve. |
before((string | Node)[]) | Inserta nodos justo antes 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. |
blur() | |
click() | |
clone |
Devuelve una copia del nodo. Si deep es true, la copia también incluye los descendientes del nodo. |
closest<E>(string) | |
closest<K>(K) | Devuelve el primer antecesor inclusivo (comenzando en el elemento) que coincide con los selectores y null en caso contrario. |
closest<K>(K) | |
compare |
Devuelve una máscara de bits que indica la posición de otro relativo al nodo. |
contains(null | Node) | Devuelve true si otro es un descendiente inclusivo del nodo y false en caso contrario. |
dispatch |
Envía un evento de evento sintético al destino y devuelve true si el valor de atributo cancelable del evento es false o su método preventDefault() no se invocó y false en caso contrario. |
focus(Focus |
|
get |
|
get |
Devuelve el primer atributo del elemento cuyo nombre completo es qualifiedName y null si no hay ningún atributo de otro modo. |
get |
Devuelve los nombres completos de todos los atributos del elemento. Puede contener duplicados. |
get |
|
get |
|
get |
Devuelve el atributo del elemento cuyo espacio de nombres es espacio de nombres y el nombre local es localName y null si no hay ningún atributo de otro modo. |
get |
|
get |
|
get |
Devuelve un HTMLCollection de los elementos del objeto en el que se invocó el método (un documento o un elemento) que tienen todas las clases dadas por classNames. El argumento classNames se interpreta como una lista separada por espacios de clases. |
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Devuelve la raíz del nodo. |
has |
Devuelve true si el elemento tiene un atributo cuyo nombre completo es qualifiedName y false en caso contrario. |
has |
Devuelve true si el elemento tiene un atributo cuyo espacio de nombres es espacio de nombres y el nombre local es localName. |
has |
Devuelve true si el elemento tiene atributos y false en caso contrario. |
has |
Devuelve si el nodo tiene elementos secundarios. |
has |
|
insert |
|
insert |
|
insert |
|
insert |
|
is |
|
is |
Devuelve si node y otherNode tienen las mismas propiedades. |
is |
|
lookup |
|
lookup |
|
matches(string) | Devuelve true si los selectores coincidentes con el elemento raíz del elemento produce el elemento y false en caso contrario. |
normalize() | Quita nodos de texto exclusivos vacíos y concatena los datos de los nodos Text exclusivos contiguos restantes en el primero de sus nodos. |
prepend((string | Node)[]) | Inserta nodos antes del primer elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
query |
|
query |
Devuelve el primer elemento que es un descendiente del nodo que coincide con los selectores. |
query |
|
query |
|
query |
Devuelve todos los descendientes de elementos del nodo que coinciden con los selectores. |
query |
|
release |
|
remove() | Quita el nodo. |
remove |
Quita el primer atributo del elemento cuyo nombre completo es qualifiedName. |
remove |
|
remove |
Quita el atributo del elemento cuyo espacio de nombres es espacio de nombres y el nombre local es localName. |
remove |
|
replace |
|
replace |
Reemplace todos los elementos secundarios del nodo por nodos, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
replace |
Reemplaza el nodo por los 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. |
request |
Muestra la pantalla completa del elemento y resuelve la promesa cuando haya terminado. Cuando se proporciona, el miembro navigationUI de las opciones indica si se prefiere o no mostrar la interfaz de usuario de navegación mientras está en pantalla completa. Si se establece en "mostrar", se prefiere la simplicidad de navegación sobre el espacio de pantalla y, si se establece en "ocultar", se prefiere más espacio de pantalla. Los agentes de usuario siempre son gratuitos para respetar las preferencias del usuario sobre las de la aplicación. El valor predeterminado "auto" indica ninguna preferencia de aplicación. |
request |
|
scroll(number, number) | |
scroll(Scroll |
|
scroll |
|
scroll |
|
scroll |
|
scroll |
|
scroll |
|
set |
Establece el valor del primer atributo del elemento cuyo nombre completo es qualifiedName en value. |
set |
|
set |
|
set |
Establece el valor del atributo del elemento cuyo espacio de nombres es espacio de nombres y el nombre local es localName en value. |
set |
|
toggle |
Si no se proporciona force, "toggles" qualifiedName, quitándolo si está presente y agregándolo si no está presente. Si force es true, agrega qualifiedName. Si force es false, quita qualifiedName. Devuelve true si qualifiedName está ahora presente y false de lo contrario. |
webkit |
Detalles de las propiedades
align
Advertencia
Esta API ya está en desuso.
Establece o recupera cómo se alinea el objeto con texto adyacente.
align: string
Valor de propiedad
string
allow
allow: string
Valor de propiedad
string
allowFullscreen
allowFullscreen: boolean
Valor de propiedad
boolean
contentDocument
Recupera el objeto de documento de la página o marco.
contentDocument: null | Document
Valor de propiedad
null | Document
contentWindow
Recupera el objeto del especificado.
contentWindow: null | Window
Valor de propiedad
null | Window
frameBorder
Advertencia
Esta API ya está en desuso.
Establece o recupera si se va a mostrar un borde para el marco.
frameBorder: string
Valor de propiedad
string
height
Establece o recupera el alto del objeto .
height: string
Valor de propiedad
string
longDesc
Advertencia
Esta API ya está en desuso.
Establece o recupera un URI en una descripción larga del objeto.
longDesc: string
Valor de propiedad
string
marginHeight
Advertencia
Esta API ya está en desuso.
Establece o recupera los alto del margen superior e inferior antes de mostrar el texto en un marco.
marginHeight: string
Valor de propiedad
string
marginWidth
Advertencia
Esta API ya está en desuso.
Establece o recupera los anchos de margen izquierdo y derecho antes de mostrar el texto en un marco.
marginWidth: string
Valor de propiedad
string
mozRequestFullScreen
mozRequestFullScreen: Function
Valor de propiedad
Function
msRequestFullscreen
msRequestFullscreen: Function
Valor de propiedad
Function
name
Establece o recupera el nombre del marco.
name: string
Valor de propiedad
string
referrerPolicy
referrerPolicy: ReferrerPolicy
Valor de propiedad
ReferrerPolicy
sandbox
sandbox: DOMTokenList
Valor de propiedad
DOMTokenList
scrolling
Advertencia
Esta API ya está en desuso.
Establece o recupera si se puede desplazar el marco.
scrolling: string
Valor de propiedad
string
src
Establece o recupera una dirección URL que va a cargar el objeto .
src: string
Valor de propiedad
string
srcdoc
Establece o reintenta el contenido de la página que se va a contener.
srcdoc: string
Valor de propiedad
string
webkitRequestFullscreen
webkitRequestFullscreen: () => void
Valor de propiedad
() => void
width
Establece o recupera el ancho del objeto .
width: string
Valor de propiedad
string
Detalles de las propiedades heredadas
accessKey
accessKey: string
Valor de propiedad
string
Se hereda de HTMLElement.accessKey
accessKeyLabel
accessKeyLabel: string
Valor de propiedad
string
Heredado de HTMLElement.accessKeyLabel
ariaAtomic
ariaAtomic: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaAtomic
ariaAutoComplete
ariaAutoComplete: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaAutoComplete
ariaBusy
ariaBusy: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaBusy
ariaChecked
ariaChecked: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaChecked
ariaColCount
ariaColCount: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaColCount
ariaColIndex
ariaColIndex: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaColIndex
ariaColIndexText
ariaColIndexText: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaColIndexText
ariaColSpan
ariaColSpan: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaColSpan
ariaCurrent
ariaCurrent: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaCurrent
ariaDisabled
ariaDisabled: null | string
Valor de propiedad
null | string
Heredado de HTMLElement.ariaDisabled
ariaExpanded
ariaExpanded: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaExpanded
ariaHasPopup
ariaHasPopup: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaHasPopup
ariaHidden
ariaHidden: null | string
Valor de propiedad
null | string
Heredado de HTMLElement.ariaHidden
ariaInvalid
ariaInvalid: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaInvalid
ariaKeyShortcuts
ariaKeyShortcuts: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaKeyShortcuts
ariaLabel
ariaLabel: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaLabel
ariaLevel
ariaLevel: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaLevel
ariaLive
ariaLive: null | string
Valor de propiedad
null | string
Heredado de HTMLElement.ariaLive
ariaModal
ariaModal: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaModal
ariaMultiLine
ariaMultiLine: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaMultiLine
ariaMultiSelectable
ariaMultiSelectable: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaMultiSelectable
ariaOrientation
ariaOrientation: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaOrientation
ariaPlaceholder
ariaPlaceholder: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaPlaceholder
ariaPosInSet
ariaPosInSet: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaPosInSet
ariaPressed
ariaPressed: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaPressed
ariaReadOnly
ariaReadOnly: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaReadOnly
ariaRequired
ariaRequired: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaRequired
ariaRoleDescription
ariaRoleDescription: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaRoleDescription
ariaRowCount
ariaRowCount: null | string
Valor de propiedad
null | string
Se hereda de HTMLElement.ariaRowCount
ariaRowIndex
ariaRowIndex: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaRowIndex
ariaRowIndexText
ariaRowIndexText: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaRowIndexText
ariaRowSpan
ariaRowSpan: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaRowSpan
ariaSelected
ariaSelected: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaSelected
ariaSetSize
ariaSetSize: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaSetSize
ariaSort
ariaSort: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaSort
ariaValueMax
ariaValueMax: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaValueMax
ariaValueMin
ariaValueMin: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaValueMin
ariaValueNow
ariaValueNow: null | string
Valor de propiedad
null | string
heredado de HTMLElement.ariaValueNow
ariaValueText
ariaValueText: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.ariaValueText
assignedSlot
assignedSlot: null | HTMLSlotElement
Valor de propiedad
null | HTMLSlotElement
Heredado de HTMLElement.assignedSlot
attributes
attributes: NamedNodeMap
Valor de propiedad
NamedNodeMap
Heredar de HTMLElement.attributes
ATTRIBUTE_NODE
ATTRIBUTE_NODE: number
Valor de propiedad
number
heredado de HTMLElement.ATTRIBUTE_NODE
autocapitalize
autocapitalize: string
Valor de propiedad
string
heredado de HTMLElement.autocapitalize
autofocus
autofocus: boolean
Valor de propiedad
boolean
heredado de HTMLElement.autofocus
baseURI
Devuelve la dirección URL base del documento del nodo del nodo.
baseURI: string
Valor de propiedad
string
se hereda de HTMLElement.baseURI
CDATA_SECTION_NODE
node es un nodo CDATASection.
CDATA_SECTION_NODE: number
Valor de propiedad
number
heredado de HTMLElement.CDATA_SECTION_NODE
childElementCount
childElementCount: number
Valor de propiedad
number
se hereda de HTMLElement.childElementCount
childNodes
Devuelve los elementos secundarios.
childNodes: NodeListOf<ChildNode>
Valor de propiedad
NodeListOf<ChildNode>
heredado de HTMLElement.childNodes
children
Devuelve los elementos secundarios.
children: HTMLCollection
Valor de propiedad
HTMLCollection
heredado de HTMLElement.children
classList
Permite la manipulación del atributo de contenido de clase del elemento como un conjunto de tokens separados por espacios en blanco a través de un objeto DOMTokenList.
classList: DOMTokenList
Valor de propiedad
DOMTokenList
Heredado de HTMLElement.classList
className
Devuelve el valor del atributo de contenido de clase del elemento. Se puede establecer para cambiarlo.
className: string
Valor de propiedad
string
Heredar de HTMLElement.className
clientHeight
clientHeight: number
Valor de propiedad
number
heredado de HTMLElement.clientHeight
clientLeft
clientLeft: number
Valor de propiedad
number
heredado de HTMLElement.clientLeft
clientTop
clientTop: number
Valor de propiedad
number
heredado de HTMLElement.clientTop
clientWidth
clientWidth: number
Valor de propiedad
number
heredado de HTMLElement.clientWidth
COMMENT_NODE
node es un nodo Comment.
COMMENT_NODE: number
Valor de propiedad
number
heredado de HTMLElement.COMMENT_NODE
contentEditable
contentEditable: string
Valor de propiedad
string
Se hereda de HTMLElement.contentEditable
dataset
dataset: DOMStringMap
Valor de propiedad
DOMStringMap
heredado de HTMLElement.dataset
dir
dir: string
Valor de propiedad
string
heredado de HTMLElement.dir
DOCUMENT_FRAGMENT_NODE
node es un nodo DocumentFragment.
DOCUMENT_FRAGMENT_NODE: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
node es un documento.
DOCUMENT_NODE: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
Se establece cuando otro es un descendiente del nodo.
DOCUMENT_POSITION_CONTAINED_BY: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
Se establece cuando otro es un antecesor de nodo.
DOCUMENT_POSITION_CONTAINS: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
Se establece cuando el nodo y otros no están en el mismo árbol.
DOCUMENT_POSITION_DISCONNECTED: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Se establece cuando otro nodo sigue.
DOCUMENT_POSITION_FOLLOWING: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Se establece cuando otro nodo es anterior.
DOCUMENT_POSITION_PRECEDING: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
node es un tipo de documento.
DOCUMENT_TYPE_NODE: number
Valor de propiedad
number
heredado de HTMLElement.DOCUMENT_TYPE_NODE
draggable
draggable: boolean
Valor de propiedad
boolean
heredado de HTMLElement.draggable
ELEMENT_NODE
node es un elemento .
ELEMENT_NODE: number
Valor de propiedad
number
heredado de HTMLElement.ELEMENT_NODE
enterKeyHint
enterKeyHint: string
Valor de propiedad
string
Heredado de HTMLElement.enterKeyHint
ENTITY_NODE
ENTITY_NODE: number
Valor de propiedad
number
heredado de HTMLElement.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: number
Valor de propiedad
number
heredado de HTMLElement.ENTITY_REFERENCE_NODE
firstChild
Devuelve el primer elemento secundario.
firstChild: null | ChildNode
Valor de propiedad
null | ChildNode
Heredado de HTMLElement.firstChild
firstElementChild
Devuelve el primer elemento secundario que es un elemento y null en caso contrario.
firstElementChild: null | Element
Valor de propiedad
null | Element
Heredado de HTMLElement.firstElementChild
hidden
hidden: boolean
Valor de propiedad
boolean
heredado de HTMLElement.hidden
id
Devuelve el valor del atributo de contenido id del elemento. Se puede establecer para cambiarlo.
id: string
Valor de propiedad
string
heredado de HTMLElement.id
inert
inert: boolean
Valor de propiedad
boolean
heredado de HTMLElement.inert
innerHTML
innerHTML: string
Valor de propiedad
string
heredado de HTMLElement.innerHTML
innerText
innerText: string
Valor de propiedad
string
heredado de HTMLElement.innerText
inputMode
inputMode: string
Valor de propiedad
string
Heredado de HTMLElement.inputMode
isConnected
Devuelve true si el nodo está conectado y false en caso contrario.
isConnected: boolean
Valor de propiedad
boolean
Se hereda de HTMLElement.isConnected
isContentEditable
isContentEditable: boolean
Valor de propiedad
boolean
Se hereda de HTMLElement.isContentEditable
lang
lang: string
Valor de propiedad
string
heredado de HTMLElement.lang
lastChild
Devuelve el último elemento secundario.
lastChild: null | ChildNode
Valor de propiedad
null | ChildNode
heredado de HTMLElement.lastChild
lastElementChild
Devuelve el último elemento secundario que es un elemento y null en caso contrario.
lastElementChild: null | Element
Valor de propiedad
null | Element
heredado de HTMLElement.lastElementChild
localName
Devuelve el nombre local.
localName: string
Valor de propiedad
string
heredado de HTMLElement.localName
namespaceURI
Devuelve el espacio de nombres.
namespaceURI: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.namespaceURI
nextElementSibling
Devuelve el primer elemento relacionado siguiente que es un elemento y null en caso contrario.
nextElementSibling: null | Element
Valor de propiedad
null | Element
heredado de HTMLElement.nextElementSibling
nextSibling
Devuelve el siguiente elemento del mismo nivel.
nextSibling: null | ChildNode
Valor de propiedad
null | ChildNode
heredado de HTMLElement.nextSibling
nodeName
Devuelve una cadena adecuada para el tipo de nodo.
nodeName: string
Valor de propiedad
string
se hereda de HTMLElement.nodeName
nodeType
Devuelve el tipo de nodo.
nodeType: number
Valor de propiedad
number
se hereda de HTMLElement.nodeType
nodeValue
nodeValue: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.nodeValue
nonce
nonce?: string
Valor de propiedad
string
heredado de HTMLElement.nonce
NOTATION_NODE
NOTATION_NODE: number
Valor de propiedad
number
heredado de HTMLElement.NOTATION_NODE
offsetHeight
offsetHeight: number
Valor de propiedad
number
heredado de HTMLElement.offsetHeight
offsetLeft
offsetLeft: number
Valor de propiedad
number
heredado de HTMLElement.offsetLeft
offsetParent
offsetParent: null | Element
Valor de propiedad
null | Element
Heredado de HTMLElement.offsetParent
offsetTop
offsetTop: number
Valor de propiedad
number
heredado de HTMLElement.offsetTop
offsetWidth
offsetWidth: number
Valor de propiedad
number
heredado de HTMLElement.offsetWidth
onabort
Se desencadena cuando el usuario anula la descarga.
onabort: null | (this: GlobalEventHandlers, ev: UIEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: UIEvent) => any
heredado de HTMLElement.onabort
onanimationcancel
onanimationcancel: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
heredado de HTMLElement.onanimationcancel
onanimationend
onanimationend: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
heredado de HTMLElement.onanimationend
onanimationiteration
onanimationiteration: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
heredado de HTMLElement.onanimationiteration
onanimationstart
onanimationstart: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
heredado de HTMLElement.onanimationstart
onauxclick
onauxclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.onauxclick
onbeforeinput
onbeforeinput: null | (this: GlobalEventHandlers, ev: InputEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: InputEvent) => any
heredado de HTMLElement.onbeforeinput
onblur
Se desencadena cuando el objeto pierde el foco de entrada.
onblur: null | (this: GlobalEventHandlers, ev: FocusEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: FocusEvent) => any
heredado de HTMLElement.onblur
oncancel
oncancel: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.oncancel
oncanplay
Se produce cuando la reproducción es posible, pero requeriría un mayor almacenamiento en búfer.
oncanplay: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.oncanplay
oncanplaythrough
oncanplaythrough: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.oncanplaythrough
onchange
Se desencadena cuando el contenido del objeto o la selección han cambiado.
onchange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onchange
onclick
Se desencadena cuando el usuario hace clic en el botón izquierdo del mouse en el objeto
onclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Se hereda de HTMLElement.onclick
onclose
onclose: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onclose
oncontextmenu
Se desencadena cuando el usuario hace clic en el botón derecho del mouse en el área cliente, abriendo el menú contextual.
oncontextmenu: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.oncontextmenu
oncopy
oncopy: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any
Valor de propiedad
null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any
se hereda de HTMLElement.oncopy
oncuechange
oncuechange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.oncuechange
oncut
oncut: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any
Valor de propiedad
null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any
heredado de HTMLElement.oncut
ondblclick
Se desencadena cuando el usuario hace doble clic en el objeto.
ondblclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Heredado de HTMLElement.ondblclick
ondrag
Se activa en el objeto de origen continuamente durante una operación de arrastre.
ondrag: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondrag
ondragend
Se activa en el objeto de origen cuando el usuario suelta el mouse al cerrar una operación de arrastre.
ondragend: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondragend
ondragenter
Se activa en el elemento de destino cuando el usuario arrastra el objeto a un destino de colocación válido.
ondragenter: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondragenter
ondragleave
Se activa en el objeto de destino cuando el usuario mueve el mouse fuera de un destino de colocación válido durante una operación de arrastre.
ondragleave: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondragleave
ondragover
Se activa en el elemento de destino continuamente mientras el usuario arrastra el objeto sobre un destino de colocación válido.
ondragover: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondragover
ondragstart
Se activa en el objeto de origen cuando el usuario empieza a arrastrar una selección de texto o un objeto seleccionado.
ondragstart: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondragstart
ondrop
ondrop: null | (this: GlobalEventHandlers, ev: DragEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: DragEvent) => any
heredado de HTMLElement.ondrop
ondurationchange
Se produce cuando se actualiza el atributo duration.
ondurationchange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.ondurationchange
onemptied
Se produce cuando el elemento multimedia se restablece a su estado inicial.
onemptied: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onemptied
onended
Se produce cuando se alcanza el final de la reproducción.
onended: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.onended
onerror
Se desencadena cuando se produce un error durante la carga de objetos.
onerror: OnErrorEventHandler
Valor de propiedad
OnErrorEventHandler
heredado de HTMLElement.onerror
onfocus
Se desencadena cuando el objeto recibe el foco.
onfocus: null | (this: GlobalEventHandlers, ev: FocusEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: FocusEvent) => any
heredado de HTMLElement.onfocus
onformdata
onformdata: null | (this: GlobalEventHandlers, ev: FormDataEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: FormDataEvent) => any
se hereda de HTMLElement.onformdata
onfullscreenchange
onfullscreenchange: null | (this: Element, ev: Event) => any
Valor de propiedad
null | (this: Element, ev: Event) => any
se hereda de HTMLElement.onfullscreenchange
onfullscreenerror
onfullscreenerror: null | (this: Element, ev: Event) => any
Valor de propiedad
null | (this: Element, ev: Event) => any
se hereda de HTMLElement.onfullscreenerror
ongotpointercapture
ongotpointercapture: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.ongotpointercapture
oninput
oninput: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.oninput
oninvalid
oninvalid: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.oninvalid
onkeydown
Se activa cuando el usuario presiona una tecla.
onkeydown: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
heredado de HTMLElement.onkeydown
onkeypress
Advertencia
Esta API ya está en desuso.
Se activa cuando el usuario presiona una tecla alfanumérica.
onkeypress: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
heredado de HTMLElement.onkeypress
onkeyup
Se desencadena cuando el usuario libera una clave.
onkeyup: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
heredado de HTMLElement.onkeyup
onload
Se desencadena inmediatamente después de que el explorador cargue el objeto.
onload: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onload
onloadeddata
Se produce cuando los datos multimedia se cargan en la posición de reproducción actual.
onloadeddata: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onloadeddata
onloadedmetadata
Se produce cuando se han determinado la duración y las dimensiones del medio.
onloadedmetadata: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onloadedmetadata
onloadstart
Se produce cuando Internet Explorer comienza a buscar datos multimedia.
onloadstart: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onloadstart
onlostpointercapture
onlostpointercapture: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onlostpointercapture
onmousedown
Se desencadena cuando el usuario hace clic en el objeto con cualquiera de los botones del mouse.
onmousedown: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Heredado de HTMLElement.onmousedown
onmouseenter
onmouseenter: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.onmouseenter
onmouseleave
onmouseleave: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.onmouseleave
onmousemove
Se desencadena cuando el usuario mueve el mouse sobre el objeto.
onmousemove: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.onmousemove
onmouseout
Se desencadena cuando el usuario mueve el puntero del mouse fuera de los límites del objeto.
onmouseout: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.onmouseout
onmouseover
Se desencadena cuando el usuario mueve el puntero del mouse al objeto .
onmouseover: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
heredado de HTMLElement.onmouseover
onmouseup
Se desencadena cuando el usuario suelta un botón del mouse mientras el mouse está sobre el objeto.
onmouseup: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
se hereda de HTMLElement.onmouseup
onpaste
onpaste: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any
Valor de propiedad
null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any
heredado de HTMLElement.onpaste
onpause
Se produce cuando la reproducción está en pausa.
onpause: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onpause
onplay
Se produce cuando se solicita el método play.
onplay: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onplay
onplaying
Se produce cuando se ha iniciado la reproducción del audio o el vídeo.
onplaying: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onplaying
onpointercancel
onpointercancel: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointercancel
onpointerdown
onpointerdown: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointerdown
onpointerenter
onpointerenter: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointerenter
onpointerleave
onpointerleave: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointerleave
onpointermove
onpointermove: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointermove
onpointerout
onpointerout: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointerout
onpointerover
onpointerover: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointerover
onpointerup
onpointerup: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
heredado de HTMLElement.onpointerup
onprogress
Se produce para indicar el progreso durante la descarga de datos multimedia.
onprogress: null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any
heredado de HTMLElement.onprogress
onratechange
Se produce cuando la velocidad de reproducción aumenta o disminuye.
onratechange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.onratechange
onreset
Se desencadena cuando el usuario restablece un formulario.
onreset: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onreset
onresize
onresize: null | (this: GlobalEventHandlers, ev: UIEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: UIEvent) => any
se hereda de HTMLElement.onresize
onscroll
Se activa cuando el usuario cambia la posición del cuadro de desplazamiento en la barra de desplazamiento del objeto.
onscroll: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onscroll
onsecuritypolicyviolation
onsecuritypolicyviolation: null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any
heredado de HTMLElement.onsecuritypolicyviolation
onseeked
Se produce cuando finaliza la operación de búsqueda.
onseeked: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onseeked
onseeking
Se produce cuando se mueve la posición de reproducción actual.
onseeking: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onseeking
onselect
Se activa cuando cambia la selección actual.
onselect: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
Heredado de HTMLElement.onselect
onselectionchange
onselectionchange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
Se hereda de HTMLElement.onselectionchange
onselectstart
onselectstart: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onselectstart
onslotchange
onslotchange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.onslotchange
onstalled
Se produce cuando la descarga se ha detenido.
onstalled: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onstalled
onsubmit
onsubmit: null | (this: GlobalEventHandlers, ev: SubmitEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: SubmitEvent) => any
heredado de HTMLElement.onsubmit
onsuspend
Se produce si la operación de carga se ha detenido intencionadamente.
onsuspend: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onsuspend
ontimeupdate
Se produce para indicar la posición de reproducción actual.
ontimeupdate: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.ontimeupdate
ontoggle
ontoggle: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
Heredado de HTMLElement.ontoggle
ontouchcancel
ontouchcancel?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
heredado de HTMLElement.ontouchcancel
ontouchend
ontouchend?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
heredado de HTMLElement.ontouchend
ontouchmove
ontouchmove?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
heredado de HTMLElement.ontouchmove
ontouchstart
ontouchstart?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
heredado de HTMLElement.ontouchstart
ontransitioncancel
ontransitioncancel: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
heredado de HTMLElement.ontransitioncancel
ontransitionend
ontransitionend: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
se hereda de HTMLElement.ontransitionend
ontransitionrun
ontransitionrun: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
se hereda de HTMLElement.ontransitionrun
ontransitionstart
ontransitionstart: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
heredado de HTMLElement.ontransitionstart
onvolumechange
Se produce cuando se cambia el volumen, o la reproducción se silencia o se desactiva.
onvolumechange: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.onvolumechange
onwaiting
Se produce cuando la reproducción se detiene porque el siguiente fotograma de un recurso de vídeo no está disponible.
onwaiting: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.onwaiting
onwebkitanimationend
Advertencia
Esta API ya está en desuso.
This is a legacy alias of onanimationend
.
onwebkitanimationend: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onwebkitanimationend
onwebkitanimationiteration
Advertencia
Esta API ya está en desuso.
This is a legacy alias of onanimationiteration
.
onwebkitanimationiteration: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onwebkitanimationiteration
onwebkitanimationstart
Advertencia
Esta API ya está en desuso.
This is a legacy alias of onanimationstart
.
onwebkitanimationstart: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
se hereda de HTMLElement.onwebkitanimationstart
onwebkittransitionend
Advertencia
Esta API ya está en desuso.
This is a legacy alias of ontransitionend
.
onwebkittransitionend: null | (this: GlobalEventHandlers, ev: Event) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: Event) => any
heredado de HTMLElement.onwebkittransitionend
onwheel
onwheel: null | (this: GlobalEventHandlers, ev: WheelEvent) => any
Valor de propiedad
null | (this: GlobalEventHandlers, ev: WheelEvent) => any
heredado de HTMLElement.onwheelel
outerHTML
outerHTML: string
Valor de propiedad
string
heredado de HTMLElement.outerHTML
outerText
outerText: string
Valor de propiedad
string
se hereda de HTMLElement.outerText
ownerDocument
ownerDocument: Document
Valor de propiedad
Document
heredado de HTMLElement.ownerDocument
parentElement
Devuelve el elemento primario.
parentElement: null | HTMLElement
Valor de propiedad
null | HTMLElement
heredado de HTMLElement.parentElement
parentNode
Devuelve el elemento primario.
parentNode: null | ParentNode
Valor de propiedad
null | ParentNode
heredado de HTMLElement.parentNode
part
part: DOMTokenList
Valor de propiedad
DOMTokenList
heredado de HTMLElement.part
prefix
Devuelve el prefijo del espacio de nombres.
prefix: null | string
Valor de propiedad
null | string
heredado de HTMLElement.prefix
previousElementSibling
Devuelve el primer elemento relacionado anterior que es un elemento y null en caso contrario.
previousElementSibling: null | Element
Valor de propiedad
null | Element
Se hereda de HTMLElement.previousElementSibling
previousSibling
Devuelve el elemento relacionado anterior.
previousSibling: null | ChildNode
Valor de propiedad
null | ChildNode
heredado de HTMLElement.previousSibling
PROCESSING_INSTRUCTION_NODE
node es un nodo ProcessingInstruction.
PROCESSING_INSTRUCTION_NODE: number
Valor de propiedad
number
heredado de HTMLElement.PROCESSING_INSTRUCTION_NODE
role
role: null | string
Valor de propiedad
null | string
se hereda de HTMLElement.role
scrollHeight
scrollHeight: number
Valor de propiedad
number
Heredado de HTMLElement.scrollHeight
scrollLeft
scrollLeft: number
Valor de propiedad
number
Heredado de HTMLElement.scrollLeft
scrollTop
scrollTop: number
Valor de propiedad
number
Heredado de HTMLElement.scrollTop
scrollWidth
scrollWidth: number
Valor de propiedad
number
heredado de HTMLElement.scrollWidth
shadowRoot
Devuelve la raíz de sombra del elemento, si existe, y si el modo de la raíz de sombra es "abierto" y null en caso contrario.
shadowRoot: null | ShadowRoot
Valor de propiedad
null | ShadowRoot
heredado de HTMLElement.shadowRoot
slot
Devuelve el valor del atributo de contenido de ranura del elemento. Se puede establecer para cambiarlo.
slot: string
Valor de propiedad
string
heredado de HTMLElement.slot
spellcheck
spellcheck: boolean
Valor de propiedad
boolean
Heredado de HTMLElement.spellcheck
style
style: CSSStyleDeclaration
Valor de propiedad
CSSStyleDeclaration
heredado de HTMLElement.style
tabIndex
tabIndex: number
Valor de propiedad
number
heredado de HTMLElement.tabIndex
tagName
Devuelve el nombre completo con mayúsculas HTML.
tagName: string
Valor de propiedad
string
Se hereda de HTMLElement.tagName
textContent
textContent: null | string
Valor de propiedad
null | string
Heredado de HTMLElement.textContent
TEXT_NODE
node es un nodo Text.
TEXT_NODE: number
Valor de propiedad
number
heredado de HTMLElement.TEXT_NODE
title
title: string
Valor de propiedad
string
Se hereda de HTMLElement.title
translate
translate: boolean
Valor de propiedad
boolean
heredado de HTMLElement.translate
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: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, boolean | AddEventListenerOptions)
function addEventListener<K>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parámetros
- type
-
K
- listener
-
(this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
getSVGDocument()
function getSVGDocument(): null | Document
Devoluciones
null | Document
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: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, boolean | EventListenerOptions)
function removeEventListener<K>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parámetros
- type
-
K
- listener
-
(this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | EventListenerOptions
Detalles de los métodos heredados
after((string | Node)[])
Inserta nodos justo después del nodo, mientras reemplaza las cadenas en los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function after(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
se hereda de HTMLElement.after
animate(null | Keyframe[] | PropertyIndexedKeyframes, number | KeyframeAnimationOptions)
function animate(keyframes: null | Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation
Parámetros
- keyframes
-
null | Keyframe[] | PropertyIndexedKeyframes
- options
-
number | KeyframeAnimationOptions
Devoluciones
Animation
heredado de HTMLElement.animate
append((string | Node)[])
Inserta nodos después del último elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function append(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
se hereda de HTMLElement.append
appendChild<T>(T)
function appendChild<T>(node: T): T
Parámetros
- node
-
T
Devoluciones
T
Heredado de HTMLElement.appendChild
attachInternals()
function attachInternals(): ElementInternals
Devoluciones
ElementInternals
heredado de HTMLElement.attachInternals
attachShadow(ShadowRootInit)
Crea una raíz de sombra para el elemento y la devuelve.
function attachShadow(init: ShadowRootInit): ShadowRoot
Parámetros
- init
-
ShadowRootInit
Devoluciones
ShadowRoot
heredado de HTMLElement.attachShadow
before((string | Node)[])
Inserta nodos justo antes del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function before(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
se hereda de HTMLElement.before
blur()
function blur()
heredado de HTMLElement.blur
click()
function click()
heredado de HTMLElement.click
cloneNode(boolean)
Devuelve una copia del nodo. Si deep es true, la copia también incluye los descendientes del nodo.
function cloneNode(deep?: boolean): Node
Parámetros
- deep
-
boolean
Devoluciones
Node
heredado de HTMLElement.cloneNode
closest<E>(string)
function closest<E>(selectors: string): null | E
Parámetros
- selectors
-
string
Devoluciones
null | E
heredado de HTMLElement.closest
closest<K>(K)
Devuelve el primer antecesor inclusivo (comenzando en el elemento) que coincide con los selectores y null en caso contrario.
function closest<K>(selector: K): null | HTMLElementTagNameMap[K]
Parámetros
- selector
-
K
Devoluciones
null | HTMLElementTagNameMap[K]
heredado de HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): null | SVGElementTagNameMap[K]
Parámetros
- selector
-
K
Devoluciones
null | SVGElementTagNameMap[K]
heredado de HTMLElement.closest
compareDocumentPosition(Node)
Devuelve una máscara de bits que indica la posición de otro relativo al nodo.
function compareDocumentPosition(other: Node): number
Parámetros
- other
-
Node
Devoluciones
number
Heredado de HTMLElement.compareDocumentPosition
contains(null | Node)
Devuelve true si otro es un descendiente inclusivo del nodo y false en caso contrario.
function contains(other: null | Node): boolean
Parámetros
- other
-
null | Node
Devoluciones
boolean
Inherited From HTMLElement.contains
dispatchEvent(Event)
Envía un evento de evento sintético al destino y devuelve true si el valor de atributo cancelable del evento es false o su método preventDefault() no se invocó y false en caso contrario.
function dispatchEvent(event: Event): boolean
Parámetros
- event
-
Event
Devoluciones
boolean
Heredado de HTMLElement.dispatchEvent
focus(FocusOptions)
function focus(options?: FocusOptions)
Parámetros
- options
-
FocusOptions
Heredado de HTMLElement.focus
getAnimations(GetAnimationsOptions)
function getAnimations(options?: GetAnimationsOptions): Animation[]
Parámetros
- options
-
GetAnimationsOptions
Devoluciones
Animation[]
heredado de HTMLElement.getAnimations
getAttribute(string)
Devuelve el primer atributo del elemento cuyo nombre completo es qualifiedName y null si no hay ningún atributo de otro modo.
function getAttribute(qualifiedName: string): null | string
Parámetros
- qualifiedName
-
string
Devoluciones
null | string
Heredado de HTMLElement.getAttribute
getAttributeNames()
Devuelve los nombres completos de todos los atributos del elemento. Puede contener duplicados.
function getAttributeNames(): string[]
Devoluciones
string[]
Heredado de HTMLElement.getAttributeNames
getAttributeNode(string)
function getAttributeNode(qualifiedName: string): null | Attr
Parámetros
- qualifiedName
-
string
Devoluciones
null | Attr
Heredado de HTMLElement.getAttributeNode
getAttributeNodeNS(null | string, string)
function getAttributeNodeNS(namespace: null | string, localName: string): null | Attr
Parámetros
- namespace
-
null | string
- localName
-
string
Devoluciones
null | Attr
heredado de HTMLElement.getAttributeNodeNS
getAttributeNS(null | string, string)
Devuelve el atributo del elemento cuyo espacio de nombres es espacio de nombres y el nombre local es localName y null si no hay ningún atributo de otro modo.
function getAttributeNS(namespace: null | string, localName: string): null | string
Parámetros
- namespace
-
null | string
- localName
-
string
Devoluciones
null | string
se hereda de HTMLElement.getAttributeNS
getBoundingClientRect()
function getBoundingClientRect(): DOMRect
Devoluciones
DOMRect
Heredado de HTMLElement.getBoundingClientRect
getClientRects()
function getClientRects(): DOMRectList
Devoluciones
DOMRectList
heredado de HTMLElement.getClientRects
getElementsByClassName(string)
Devuelve un HTMLCollection de los elementos del objeto en el que se invocó el método (un documento o un elemento) que tienen todas las clases dadas por classNames. El argumento classNames se interpreta como una lista separada por espacios de clases.
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
Parámetros
- classNames
-
string
Devoluciones
HTMLCollectionOf<Element>
Se hereda de HTMLElement.getElementsByClassName
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
Parámetros
- qualifiedName
-
string
Devoluciones
HTMLCollectionOf<Element>
Se hereda de HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<HTMLElementTagNameMap[K]>
Se hereda de HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<SVGElementTagNameMap[K]>
Se hereda de HTMLElement.getElementsByTagName
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
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>
Heredado de HTMLElement.getElementsByTagNameNS
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>
Heredado de HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS(null | string, string)
function getElementsByTagNameNS(namespace: null | string, localName: string): HTMLCollectionOf<Element>
Parámetros
- namespace
-
null | string
- localName
-
string
Devoluciones
HTMLCollectionOf<Element>
Heredado de HTMLElement.getElementsByTagNameNS
getRootNode(GetRootNodeOptions)
Devuelve la raíz del nodo.
function getRootNode(options?: GetRootNodeOptions): Node
Parámetros
- options
-
GetRootNodeOptions
Devoluciones
Node
heredado de HTMLElement.getRootNode
hasAttribute(string)
Devuelve true si el elemento tiene un atributo cuyo nombre completo es qualifiedName y false en caso contrario.
function hasAttribute(qualifiedName: string): boolean
Parámetros
- qualifiedName
-
string
Devoluciones
boolean
Heredado de HTMLElement.hasAttribute
hasAttributeNS(null | string, string)
Devuelve true si el elemento tiene un atributo cuyo espacio de nombres es espacio de nombres y el nombre local es localName.
function hasAttributeNS(namespace: null | string, localName: string): boolean
Parámetros
- namespace
-
null | string
- localName
-
string
Devoluciones
boolean
Heredado de HTMLElement.hasAttributeNS
hasAttributes()
Devuelve true si el elemento tiene atributos y false en caso contrario.
function hasAttributes(): boolean
Devoluciones
boolean
heredado de HTMLElement.hasAttributes
hasChildNodes()
Devuelve si el nodo tiene elementos secundarios.
function hasChildNodes(): boolean
Devoluciones
boolean
Heredar de HTMLElement.hasChildNodes
hasPointerCapture(number)
function hasPointerCapture(pointerId: number): boolean
Parámetros
- pointerId
-
number
Devoluciones
boolean
Heredado de HTMLElement.hasPointerCapture
insertAdjacentElement(InsertPosition, Element)
function insertAdjacentElement(where: InsertPosition, element: Element): null | Element
Parámetros
- where
-
InsertPosition
- element
-
Element
Devoluciones
null | Element
heredado de HTMLElement.insertAdjacentElement
insertAdjacentHTML(InsertPosition, string)
function insertAdjacentHTML(position: InsertPosition, text: string)
Parámetros
- position
-
InsertPosition
- text
-
string
Se hereda de HTMLElement.insertAdjacentHTML
insertAdjacentText(InsertPosition, string)
function insertAdjacentText(where: InsertPosition, data: string)
Parámetros
- where
-
InsertPosition
- data
-
string
Heredado de HTMLElement.insertAdjacentText
insertBefore<T>(T, null | Node)
function insertBefore<T>(node: T, child: null | Node): T
Parámetros
- node
-
T
- child
-
null | Node
Devoluciones
T
heredado de HTMLElement.insertBefore
isDefaultNamespace(null | string)
function isDefaultNamespace(namespace: null | string): boolean
Parámetros
- namespace
-
null | string
Devoluciones
boolean
se hereda de HTMLElement.isDefaultNamespace
isEqualNode(null | Node)
Devuelve si node y otherNode tienen las mismas propiedades.
function isEqualNode(otherNode: null | Node): boolean
Parámetros
- otherNode
-
null | Node
Devoluciones
boolean
Heredado de HTMLElement.isEqualNode
isSameNode(null | Node)
function isSameNode(otherNode: null | Node): boolean
Parámetros
- otherNode
-
null | Node
Devoluciones
boolean
Heredado de HTMLElement.isSameNode
lookupNamespaceURI(null | string)
function lookupNamespaceURI(prefix: null | string): null | string
Parámetros
- prefix
-
null | string
Devoluciones
null | string
se hereda de HTMLElement.lookupNamespaceURI
lookupPrefix(null | string)
function lookupPrefix(namespace: null | string): null | string
Parámetros
- namespace
-
null | string
Devoluciones
null | string
heredado de HTMLElement.lookupPrefix
matches(string)
Devuelve true si los selectores coincidentes con el elemento raíz del elemento produce el elemento y false en caso contrario.
function matches(selectors: string): boolean
Parámetros
- selectors
-
string
Devoluciones
boolean
Heredado de HTMLElement.matches
normalize()
Quita nodos de texto exclusivos vacíos y concatena los datos de los nodos Text exclusivos contiguos restantes en el primero de sus nodos.
function normalize()
se hereda de HTMLElement.normalize
prepend((string | Node)[])
Inserta nodos antes del primer elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function prepend(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
heredado de HTMLElement.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): null | E
Parámetros
- selectors
-
string
Devoluciones
null | E
Se hereda de HTMLElement.querySelector
querySelector<K>(K)
Devuelve el primer elemento que es un descendiente del nodo que coincide con los selectores.
function querySelector<K>(selectors: K): null | HTMLElementTagNameMap[K]
Parámetros
- selectors
-
K
Devoluciones
null | HTMLElementTagNameMap[K]
Se hereda de HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): null | SVGElementTagNameMap[K]
Parámetros
- selectors
-
K
Devoluciones
null | SVGElementTagNameMap[K]
Se hereda de HTMLElement.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
Parámetros
- selectors
-
string
Devoluciones
NodeListOf<E>
Heredado de HTMLElement.querySelectorAll
querySelectorAll<K>(K)
Devuelve todos los descendientes de elementos del nodo que coinciden con los selectores.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<HTMLElementTagNameMap[K]>
Heredado de HTMLElement.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<SVGElementTagNameMap[K]>
Heredado de HTMLElement.querySelectorAll
releasePointerCapture(number)
function releasePointerCapture(pointerId: number)
Parámetros
- pointerId
-
number
se hereda de HTMLElement.releasePointerCapture
remove()
Quita el nodo.
function remove()
Heredado de HTMLElement.remove
removeAttribute(string)
Quita el primer atributo del elemento cuyo nombre completo es qualifiedName.
function removeAttribute(qualifiedName: string)
Parámetros
- qualifiedName
-
string
Heredar de HTMLElement.removeAttribute
removeAttributeNode(Attr)
function removeAttributeNode(attr: Attr): Attr
Parámetros
- attr
-
Attr
Devoluciones
Attr
Heredado de HTMLElement.removeAttributeNode
removeAttributeNS(null | string, string)
Quita el atributo del elemento cuyo espacio de nombres es espacio de nombres y el nombre local es localName.
function removeAttributeNS(namespace: null | string, localName: string)
Parámetros
- namespace
-
null | string
- localName
-
string
Heredado de HTMLElement.removeAttributeNS
removeChild<T>(T)
function removeChild<T>(child: T): T
Parámetros
- child
-
T
Devoluciones
T
Heredado de HTMLElement.removeChild
replaceChild<T>(Node, T)
function replaceChild<T>(node: Node, child: T): T
Parámetros
- node
-
Node
- child
-
T
Devoluciones
T
Heredado de HTMLElement.replaceChild
replaceChildren((string | Node)[])
Reemplace todos los elementos secundarios del nodo por nodos, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function replaceChildren(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
Heredado de HTMLElement.replaceChildren
replaceWith((string | Node)[])
Reemplaza el nodo por los nodos, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes.
Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos.
function replaceWith(nodes: (string | Node)[])
Parámetros
- nodes
-
(string | Node)[]
Heredado de HTMLElement.replaceWith
requestFullscreen(FullscreenOptions)
Muestra la pantalla completa del elemento y resuelve la promesa cuando haya terminado.
Cuando se proporciona, el miembro navigationUI de las opciones indica si se prefiere o no mostrar la interfaz de usuario de navegación mientras está en pantalla completa. Si se establece en "mostrar", se prefiere la simplicidad de navegación sobre el espacio de pantalla y, si se establece en "ocultar", se prefiere más espacio de pantalla. Los agentes de usuario siempre son gratuitos para respetar las preferencias del usuario sobre las de la aplicación. El valor predeterminado "auto" indica ninguna preferencia de aplicación.
function requestFullscreen(options?: FullscreenOptions): Promise<void>
Parámetros
- options
-
FullscreenOptions
Devoluciones
Promise<void>
Se hereda de HTMLElement.requestFullscreen
requestPointerLock()
function requestPointerLock()
se hereda de HTMLElement.requestPointerLock
scroll(number, number)
function scroll(x: number, y: number)
Parámetros
- x
-
number
- y
-
number
se hereda de HTMLElement.scroll
scroll(ScrollToOptions)
function scroll(options?: ScrollToOptions)
Parámetros
- options
-
ScrollToOptions
se hereda de HTMLElement.scroll
scrollBy(number, number)
function scrollBy(x: number, y: number)
Parámetros
- x
-
number
- y
-
number
se hereda de HTMLElement.scrollBy
scrollBy(ScrollToOptions)
function scrollBy(options?: ScrollToOptions)
Parámetros
- options
-
ScrollToOptions
se hereda de HTMLElement.scrollBy
scrollIntoView(boolean | ScrollIntoViewOptions)
function scrollIntoView(arg?: boolean | ScrollIntoViewOptions)
Parámetros
- arg
-
boolean | ScrollIntoViewOptions
Se hereda de HTMLElement.scrollIntoView
scrollTo(number, number)
function scrollTo(x: number, y: number)
Parámetros
- x
-
number
- y
-
number
heredado de HTMLElement.scrollTo
scrollTo(ScrollToOptions)
function scrollTo(options?: ScrollToOptions)
Parámetros
- options
-
ScrollToOptions
heredado de HTMLElement.scrollTo
setAttribute(string, string)
Establece el valor del primer atributo del elemento cuyo nombre completo es qualifiedName en value.
function setAttribute(qualifiedName: string, value: string)
Parámetros
- qualifiedName
-
string
- value
-
string
Heredado de HTMLElement.setAttribute
setAttributeNode(Attr)
function setAttributeNode(attr: Attr): null | Attr
Parámetros
- attr
-
Attr
Devoluciones
null | Attr
Se hereda de HTMLElement.setAttributeNode
setAttributeNodeNS(Attr)
function setAttributeNodeNS(attr: Attr): null | Attr
Parámetros
- attr
-
Attr
Devoluciones
null | Attr
Heredado de HTMLElement.setAttributeNodeNS
setAttributeNS(null | string, string, string)
Establece el valor del atributo del elemento cuyo espacio de nombres es espacio de nombres y el nombre local es localName en value.
function setAttributeNS(namespace: null | string, qualifiedName: string, value: string)
Parámetros
- namespace
-
null | string
- qualifiedName
-
string
- value
-
string
Heredado de HTMLElement.setAttributeNS
setPointerCapture(number)
function setPointerCapture(pointerId: number)
Parámetros
- pointerId
-
number
Se hereda de HTMLElement.setPointerCapture
toggleAttribute(string, boolean)
Si no se proporciona force, "toggles" qualifiedName, quitándolo si está presente y agregándolo si no está presente. Si force es true, agrega qualifiedName. Si force es false, quita qualifiedName.
Devuelve true si qualifiedName está ahora presente y false de lo contrario.
function toggleAttribute(qualifiedName: string, force?: boolean): boolean
Parámetros
- qualifiedName
-
string
- force
-
boolean
Devoluciones
boolean
heredado de HTMLElement.toggleAttribute
webkitMatchesSelector(string)
Advertencia
Esta API ya está en desuso.
This is a legacy alias of matches
.
function webkitMatchesSelector(selectors: string): boolean
Parámetros
- selectors
-
string
Devoluciones
boolean
heredado de HTMLElement.webkitMatchesSelector