IPowerBiElement interface
- Extends
-
HTMLElement
Propiedades
| class |
|
| part | La |
| power |
|
| style | |
| text |
Propiedades heredadas
| access |
La |
| access |
La |
| 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 |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| assigned |
|
| attributes | La |
| attribute |
|
| ATTRIBUTE_NODE | |
| autocapitalize | La |
| autocorrect | La |
| autofocus | |
| baseURI | La propiedad de solo |
| CDATA_SECTION_NODE | node es un nodo CDATASection. |
| child |
|
| child |
La propiedad de solo |
| children | Devuelve los elementos secundarios. |
| class |
Propiedad |
| client |
La |
| client |
La |
| client |
La |
| client |
La |
| COMMENT_NODE | node es un nodo Comment. |
| content |
|
| current |
La |
| dataset | |
| dir | La |
| 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 | La |
| ELEMENT_NODE | node es un elemento . |
| enter |
|
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
La propiedad de solo |
| first |
Devuelve el primer elemento secundario que es un elemento y null en caso contrario. |
| hidden | La propiedad |
| id | La |
| inert | La propiedad |
| innerHTML | La |
| inner |
La |
| input |
|
| is |
La propiedad de solo |
| is |
|
| lang | La |
| last |
La propiedad de solo |
| last |
Devuelve el último elemento secundario que es un elemento y null en caso contrario. |
| local |
La |
| namespaceURI | La |
| next |
Devuelve el primer elemento relacionado siguiente que es un elemento y null en caso contrario. |
| next |
La propiedad de solo |
| node |
La propiedad de solo |
| node |
La propiedad de solo |
| node |
La |
| nonce | |
| NOTATION_NODE | |
| offset |
La |
| offset |
La |
| offset |
La |
| offset |
La |
| offset |
La |
| onabort | |
| onanimationcancel | |
| onanimationend | |
| onanimationiteration | |
| onanimationstart | |
| onauxclick | |
| onbeforeinput | |
| onbeforematch | |
| onbeforetoggle | |
| onblur | |
| oncancel | |
| oncanplay | |
| oncanplaythrough | |
| onchange | |
| onclick | |
| onclose | |
| oncontextlost | |
| oncontextmenu | |
| oncontextrestored | |
| oncopy | |
| oncuechange | |
| oncut | |
| ondblclick | |
| ondrag | |
| ondragend | |
| ondragenter | |
| ondragleave | |
| ondragover | |
| ondragstart | |
| ondrop | |
| ondurationchange | |
| onemptied | |
| onended | |
| onerror | |
| onfocus | |
| onformdata | |
| onfullscreenchange | |
| onfullscreenerror | |
| ongotpointercapture | |
| oninput | |
| oninvalid | |
| onkeydown | |
| onkeypress | |
| onkeyup | |
| onload | |
| onloadeddata | |
| onloadedmetadata | |
| onloadstart | |
| onlostpointercapture | |
| onmousedown | |
| onmouseenter | |
| onmouseleave | |
| onmousemove | |
| onmouseout | |
| onmouseover | |
| onmouseup | |
| onpaste | |
| onpause | |
| onplay | |
| onplaying | |
| onpointercancel | |
| onpointerdown | |
| onpointerenter | |
| onpointerleave | |
| onpointermove | |
| onpointerout | |
| onpointerover | |
| onpointerrawupdate | Solo está disponible en contextos seguros. |
| onpointerup | |
| onprogress | |
| onratechange | |
| onreset | |
| onresize | |
| onscroll | |
| onscrollend | |
| onsecuritypolicyviolation | |
| onseeked | |
| onseeking | |
| onselect | |
| onselectionchange | |
| onselectstart | |
| onslotchange | |
| onstalled | |
| onsubmit | |
| onsuspend | |
| ontimeupdate | |
| ontoggle | |
| ontouchcancel | |
| ontouchend | |
| ontouchmove | |
| ontouchstart | |
| ontransitioncancel | |
| ontransitionend | |
| ontransitionrun | |
| ontransitionstart | |
| onvolumechange | |
| onwaiting | |
| onwebkitanimationend | |
| onwebkitanimationiteration | |
| onwebkitanimationstart | |
| onwebkittransitionend | |
| onwheel | |
| outerHTML | El |
| outer |
La |
| owner |
La propiedad de solo |
| parent |
La propiedad de solo |
| parent |
La propiedad de solo |
| popover | La |
| prefix | La |
| previous |
Devuelve el primer elemento relacionado anterior que es un elemento y null en caso contrario. |
| previous |
La propiedad de solo |
| PROCESSING_INSTRUCTION_NODE | node es un nodo ProcessingInstruction. |
| role | |
| scroll |
La |
| scroll |
La |
| scroll |
La |
| scroll |
La |
| shadow |
La |
| slot | La |
| spellcheck | La |
| tab |
|
| tag |
La |
| TEXT_NODE | node es un nodo Text. |
| title | La |
| translate | La |
| writing |
La |
Métodos heredados
| add |
|
| add |
|
| 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(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 |
El |
| attach |
El |
| attach |
El |
| 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() | |
| check |
El |
| click() | El |
| clone |
El |
| closest<E>(string) | |
| closest<K>(K) | El |
| closest<K>(K) | |
| closest<K>(K) | |
| compare |
El |
| computed |
El |
| contains(Node | null) | El |
| dispatch |
El |
| focus(Focus |
|
| get |
|
| get |
Método |
| get |
Método |
| get |
Devuelve el atributo especificado del elemento especificado, como un nodo Attr. |
| get |
El |
| get |
El |
| get |
El |
| get |
El |
| get |
El método |
| get |
|
| get |
El |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
El |
| get |
|
| get |
|
| getHTML(Get |
El |
| get |
El |
| has |
El |
| has |
El |
| has |
El |
| has |
El |
| has |
Método |
| hide |
El |
| insert |
Método |
| insert |
Método |
| insert |
El |
| insert |
El |
| is |
El |
| is |
El |
| is |
El |
| lookup |
El |
| lookup |
El |
| matches(string) | El |
| normalize() | El |
| prepend((string | Node)[]) | Inserta nodos antes del primer elemento secundario del nodo, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
| query |
|
| query |
Devuelve el primer elemento que es un descendiente del nodo que coincide con los selectores. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
Devuelve todos los descendientes de elementos del nodo que coinciden con los selectores. |
| query |
|
| query |
|
| query |
|
| release |
Método |
| remove() | Quita el nodo. |
| remove |
El método |
| remove |
El |
| remove |
El |
| remove |
El |
| remove |
|
| remove |
|
| replace |
El |
| replace |
Reemplace todos los elementos secundarios del nodo por nodos, al tiempo que reemplaza las cadenas de los nodos por nodos de texto equivalentes. Produce una excepción DOMException "HierarchyRequestError" si se infringen las restricciones del árbol de nodos. |
| 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 |
El |
| request |
El |
| scroll(number, number) | |
| scroll(Scroll |
El |
| scroll |
|
| scroll |
El |
| scroll |
El método de |
| scroll |
|
| scroll |
El |
| set |
El |
| set |
El |
| set |
El |
| set |
|
| set |
El |
| set |
Método |
| show |
El |
| toggle |
Método |
| toggle |
El |
| webkit |
Detalles de las propiedades
classList
Element.classList es una propiedad de solo lectura que devuelve una colección DOMTokenList dinámica de los class atributos del elemento.
DOMTokenList classList
Valor de propiedad
DOMTokenList
part
La part propiedad de la interfaz Element representa los identificadores de parte del elemento (es decir, establecido mediante el part atributo ), devuelto como DOMTokenList.
DOMTokenList part
Valor de propiedad
DOMTokenList
powerBiEmbed
powerBiEmbed: Embed
Valor de propiedad
Embed
style
textContent
Detalles de las propiedades heredadas
accessKey
La HTMLElement.accessKey propiedad establece la pulsación de tecla que un usuario puede presionar para saltar a un elemento determinado.
accessKey: string
Valor de propiedad
string
Se hereda de HTMLElement.accessKey
accessKeyLabel
La HTMLElement.accessKeyLabel propiedad de solo lectura devuelve una cadena que contiene la clave de acceso asignada por el explorador del elemento (si existe); de lo contrario, devuelve una cadena vacía.
accessKeyLabel: string
Valor de propiedad
string
Heredado de HTMLElement.accessKeyLabel
ariaActiveDescendantElement
ariaActiveDescendantElement: Element | null
Valor de propiedad
Element | null
Heredado de HTMLElement.ariaActiveDescendantElement
ariaAtomic
ariaAtomic: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaAtomic
ariaAutoComplete
ariaAutoComplete: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaAutoComplete
ariaBrailleLabel
ariaBrailleLabel: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaBrailleLabel
ariaBrailleRoleDescription
ariaBrailleRoleDescription: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaBrailleRoleDescription
ariaBusy
ariaBusy: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaBusy
ariaChecked
ariaChecked: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaChecked
ariaColCount
ariaColCount: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaColCount
ariaColIndex
ariaColIndex: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaColIndex
ariaColIndexText
ariaColIndexText: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaColIndexText
ariaColSpan
ariaColSpan: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaColSpan
ariaControlsElements
ariaControlsElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaControlsElements
ariaCurrent
ariaCurrent: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaCurrent
ariaDescribedByElements
ariaDescribedByElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaDescribedByElements
ariaDescription
ariaDescription: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaDescription
ariaDetailsElements
ariaDetailsElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaDetailsElements
ariaDisabled
ariaDisabled: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaDisabled
ariaErrorMessageElements
ariaErrorMessageElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaErrorMessageElements
ariaExpanded
ariaExpanded: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaExpanded
ariaFlowToElements
ariaFlowToElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaFlowToElements
ariaHasPopup
ariaHasPopup: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaHasPopup
ariaHidden
ariaHidden: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaHidden
ariaInvalid
ariaInvalid: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaInvalid
ariaKeyShortcuts
ariaKeyShortcuts: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaKeyShortcuts
ariaLabel
ariaLabel: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaLabel
ariaLabelledByElements
ariaLabelledByElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaLabelledByElements
ariaLevel
ariaLevel: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaLevel
ariaLive
ariaLive: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaLive
ariaModal
ariaModal: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaModal
ariaMultiLine
ariaMultiLine: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaMultiLine
ariaMultiSelectable
ariaMultiSelectable: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaMultiSelectable
ariaOrientation
ariaOrientation: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaOrientation
ariaOwnsElements
ariaOwnsElements: (readonly Element[]) | null
Valor de propiedad
(readonly Element[]) | null
Heredado de HTMLElement.ariaOwnsElements
ariaPlaceholder
ariaPlaceholder: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaPlaceholder
ariaPosInSet
ariaPosInSet: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaPosInSet
ariaPressed
ariaPressed: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaPressed
ariaReadOnly
ariaReadOnly: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaReadOnly
ariaRelevant
ariaRelevant: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.ariaRelevant
ariaRequired
ariaRequired: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaRequired
ariaRoleDescription
ariaRoleDescription: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaRoleDescription
ariaRowCount
ariaRowCount: string | null
Valor de propiedad
string | null
Se hereda de HTMLElement.ariaRowCount
ariaRowIndex
ariaRowIndex: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaRowIndex
ariaRowIndexText
ariaRowIndexText: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaRowIndexText
ariaRowSpan
ariaRowSpan: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaRowSpan
ariaSelected
ariaSelected: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaSelected
ariaSetSize
ariaSetSize: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaSetSize
ariaSort
ariaSort: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaSort
ariaValueMax
ariaValueMax: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaValueMax
ariaValueMin
ariaValueMin: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaValueMin
ariaValueNow
ariaValueNow: string | null
Valor de propiedad
string | null
heredado de HTMLElement.ariaValueNow
ariaValueText
ariaValueText: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.ariaValueText
assignedSlot
assignedSlot: HTMLSlotElement | null
Valor de propiedad
HTMLSlotElement | null
Heredado de HTMLElement.assignedSlot
attributes
La Element.attributes propiedad devuelve una colección activa de todos los nodos de atributo registrados en el nodo especificado.
attributes: NamedNodeMap
Valor de propiedad
NamedNodeMap
Heredar de HTMLElement.attributes
attributeStyleMap
attributeStyleMap: StylePropertyMap
Valor de propiedad
StylePropertyMap
Heredado de HTMLElement.attributeStyleMap
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
Valor de propiedad
2
heredado de HTMLElement.ATTRIBUTE_NODE
autocapitalize
La autocapitalize propiedad de la interfaz HTMLElement representa el comportamiento de mayúsculas del elemento para la entrada del usuario.
autocapitalize: string
Valor de propiedad
string
heredado de HTMLElement.autocapitalize
autocorrect
La autocorrect propiedad de la interfaz HTMLElement controla si la autocorrección de texto editable está habilitada o no para errores de ortografía o puntuación.
autocorrect: boolean
Valor de propiedad
boolean
Heredado de HTMLElement.autocorrecct
autofocus
baseURI
La propiedad de solo baseURI lectura de la interfaz Node devuelve la dirección URL base absoluta del documento que contiene el nodo.
baseURI: string
Valor de propiedad
string
se hereda de HTMLElement.baseURI
CDATA_SECTION_NODE
node es un nodo CDATASection.
CDATA_SECTION_NODE: 4
Valor de propiedad
4
heredado de HTMLElement.CDATA_SECTION_NODE
childElementCount
childElementCount: number
Valor de propiedad
number
se hereda de HTMLElement.childElementCount
childNodes
La propiedad de solo childNodes lectura de la interfaz Node devuelve un elemento activo al primer nodo secundario al que se asigna el índice 0.
childNodes: NodeListOf<ChildNode>
Valor de propiedad
NodeListOf<ChildNode>
heredado de HTMLElement.childNodes
children
Devuelve los elementos secundarios.
children: HTMLCollection
Valor de propiedad
HTMLCollection
heredado de HTMLElement.children
className
Propiedad className del elemento especificado.
className: string
Valor de propiedad
string
Heredar de HTMLElement.className
clientHeight
La clientHeight propiedad de solo lectura de la interfaz Element es cero para los elementos sin cuadros de diseño CSS o insertados; de lo contrario, es el alto interno de un elemento en píxeles.
clientHeight: number
Valor de propiedad
number
heredado de HTMLElement.clientHeight
clientLeft
La clientLeft propiedad de solo lectura de la interfaz Element devuelve el ancho del borde izquierdo de un elemento en píxeles.
clientLeft: number
Valor de propiedad
number
heredado de HTMLElement.clientLeft
clientTop
La clientTop propiedad de solo lectura de la interfaz Element devuelve el ancho del borde superior de un elemento en píxeles.
clientTop: number
Valor de propiedad
number
heredado de HTMLElement.clientTop
clientWidth
La clientWidth propiedad de solo lectura de la interfaz Element es cero para los elementos y elementos insertados sin CSS; de lo contrario, es el ancho interno de un elemento en píxeles.
clientWidth: number
Valor de propiedad
number
heredado de HTMLElement.clientWidth
COMMENT_NODE
node es un nodo Comment.
COMMENT_NODE: 8
Valor de propiedad
8
heredado de HTMLElement.COMMENT_NODE
contentEditable
contentEditable: string
Valor de propiedad
string
Se hereda de HTMLElement.contentEditable
currentCSSZoom
La currentCSSZoom propiedad de solo lectura de la interfaz Element proporciona el CSS zoom "efectivo" de un elemento, teniendo en cuenta el zoom aplicado al elemento y a todos sus elementos primarios.
currentCSSZoom: number
Valor de propiedad
number
Heredado de HTMLElement.currentCSSZoom
dataset
dataset: DOMStringMap
Valor de propiedad
DOMStringMap
heredado de HTMLElement.dataset
dir
La HTMLElement.dir propiedad indica la direccionalidad de escritura de texto del contenido del elemento actual.
dir: string
Valor de propiedad
string
heredado de HTMLElement.dir
DOCUMENT_FRAGMENT_NODE
node es un nodo DocumentFragment.
DOCUMENT_FRAGMENT_NODE: 11
Valor de propiedad
11
heredado de HTMLElement.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
node es un documento.
DOCUMENT_NODE: 9
Valor de propiedad
9
heredado de HTMLElement.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 HTMLElement.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 HTMLElement.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 HTMLElement.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Se establece cuando otro nodo sigue.
DOCUMENT_POSITION_FOLLOWING: 4
Valor de propiedad
4
heredado de HTMLElement.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Valor de propiedad
32
heredado de HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Se establece cuando otro nodo es anterior.
DOCUMENT_POSITION_PRECEDING: 2
Valor de propiedad
2
heredado de HTMLElement.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
node es un tipo de documento.
DOCUMENT_TYPE_NODE: 10
Valor de propiedad
10
heredado de HTMLElement.DOCUMENT_TYPE_NODE
draggable
La draggable propiedad de la interfaz HTMLElement obtiene y establece un primitivo booleano que indica si el elemento se puede arrastrar.
draggable: boolean
Valor de propiedad
boolean
heredado de HTMLElement.draggable
ELEMENT_NODE
node es un elemento .
ELEMENT_NODE: 1
Valor de propiedad
1
heredado de HTMLElement.ELEMENT_NODE
enterKeyHint
enterKeyHint: string
Valor de propiedad
string
Heredado de HTMLElement.enterKeyHint
ENTITY_NODE
ENTITY_NODE: 6
Valor de propiedad
6
heredado de HTMLElement.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
Valor de propiedad
5
heredado de HTMLElement.ENTITY_REFERENCE_NODE
firstChild
La propiedad de solo firstChild lectura de la interfaz Node devuelve el primer elemento secundario del nodo en el árbol o null si el nodo no tiene elementos secundarios.
firstChild: ChildNode | null
Valor de propiedad
ChildNode | null
Heredado de HTMLElement.firstChild
firstElementChild
Devuelve el primer elemento secundario que es un elemento y null en caso contrario.
firstElementChild: Element | null
Valor de propiedad
Element | null
Heredado de HTMLElement.firstElementChild
hidden
La propiedad hidden HTMLElement refleja el valor del atributo del hidden elemento.
hidden: boolean
Valor de propiedad
boolean
heredado de HTMLElement.hidden
id
La id propiedad de la interfaz Element representa el identificador del elemento, que refleja el id atributo global.
id: string
Valor de propiedad
string
heredado de HTMLElement.id
inert
La propiedad inert HTMLElement refleja el valor del atributo del inert elemento.
inert: boolean
Valor de propiedad
boolean
heredado de HTMLElement.inert
innerHTML
La innerHTML propiedad de la interfaz Element obtiene o establece el marcado HTML o XML contenido en el elemento .
innerHTML: string
Valor de propiedad
string
heredado de HTMLElement.innerHTML
innerText
La innerText propiedad de la interfaz HTMLElement representa el contenido de texto representado de un nodo y sus descendientes.
innerText: string
Valor de propiedad
string
heredado de HTMLElement.innerText
inputMode
isConnected
La propiedad de solo isConnected lectura de la interfaz Node devuelve un valor booleano que indica si el nodo está conectado (directa o indirectamente) a un objeto Document.
isConnected: boolean
Valor de propiedad
boolean
Se hereda de HTMLElement.isConnected
isContentEditable
isContentEditable: boolean
Valor de propiedad
boolean
Se hereda de HTMLElement.isContentEditable
lang
La lang propiedad de la interfaz HTMLElement indica el idioma base de los valores de atributo y el contenido de texto de un elemento, en forma de MISSING: RFC(5646, 'BCP 47 language identifier tag')].
lang: string
Valor de propiedad
string
heredado de HTMLElement.lang
lastChild
La propiedad de solo lastChild lectura de la interfaz Node devuelve el último elemento secundario del nodo o null si no hay nodos secundarios.
lastChild: ChildNode | null
Valor de propiedad
ChildNode | null
heredado de HTMLElement.lastChild
lastElementChild
Devuelve el último elemento secundario que es un elemento y null en caso contrario.
lastElementChild: Element | null
Valor de propiedad
Element | null
heredado de HTMLElement.lastElementChild
localName
La Element.localName propiedad de solo lectura devuelve la parte local del nombre completo de un elemento.
localName: string
Valor de propiedad
string
heredado de HTMLElement.localName
namespaceURI
La Element.namespaceURI propiedad de solo lectura devuelve el URI del espacio de nombres del elemento o null si el elemento no está en un espacio de nombres.
namespaceURI: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.namespaceURI
nextElementSibling
Devuelve el primer elemento relacionado siguiente que es un elemento y null en caso contrario.
nextElementSibling: Element | null
Valor de propiedad
Element | null
heredado de HTMLElement.nextElementSibling
nextSibling
La propiedad de solo nextSibling lectura de la interfaz Node devuelve el nodo inmediatamente después del especificado en node.childNodes de su elemento primario, o devuelve null si el nodo especificado es el último elemento secundario del elemento primario.
nextSibling: ChildNode | null
Valor de propiedad
ChildNode | null
heredado de HTMLElement.nextSibling
nodeName
La propiedad de solo nodeName lectura de Node devuelve el nombre del nodo actual como una cadena.
nodeName: string
Valor de propiedad
string
se hereda de HTMLElement.nodeName
nodeType
La propiedad de solo nodeType lectura de una interfaz Node es un entero que identifica lo que es el nodo.
nodeType: number
Valor de propiedad
number
se hereda de HTMLElement.nodeType
nodeValue
La nodeValue propiedad de la interfaz Node devuelve o establece el valor del nodo actual.
nodeValue: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.nodeValue
nonce
NOTATION_NODE
NOTATION_NODE: 12
Valor de propiedad
12
heredado de HTMLElement.NOTATION_NODE
offsetHeight
La offsetHeight propiedad de solo lectura de la interfaz HTMLElement devuelve el alto de un elemento, incluido el relleno vertical y los bordes, como un entero.
offsetHeight: number
Valor de propiedad
number
heredado de HTMLElement.offsetHeight
offsetLeft
La offsetLeft propiedad de solo lectura de la interfaz HTMLElement devuelve el número de píxeles que la esquina superior izquierda del elemento actual se desplaza a la izquierda dentro del nodo HTMLElement.offsetParent.
offsetLeft: number
Valor de propiedad
number
heredado de HTMLElement.offsetLeft
offsetParent
La HTMLElement.offsetParent propiedad de solo lectura devuelve una referencia al elemento que es el elemento antecesor situado más cercano (más cercano en la jerarquía de contención).
offsetParent: Element | null
Valor de propiedad
Element | null
Heredado de HTMLElement.offsetParent
offsetTop
La offsetTop propiedad de solo lectura de la interfaz HTMLElement devuelve la distancia desde el borde exterior del elemento actual (incluido su margen) hasta el borde de relleno superior de HTMLelement.offsetParent, el elemento antecesor situado más cercano .
offsetTop: number
Valor de propiedad
number
heredado de HTMLElement.offsetTop
offsetWidth
La offsetWidth propiedad de solo lectura de la interfaz HTMLElement devuelve el ancho de diseño de un elemento como un entero.
offsetWidth: number
Valor de propiedad
number
heredado de HTMLElement.offsetWidth
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: UIEvent) => any | null
heredado de HTMLElement.onabort
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de HTMLElement.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de HTMLElement.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de HTMLElement.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
heredado de HTMLElement.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: InputEvent) => any | null
heredado de HTMLElement.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de HTMLElement.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Heredado de HTMLElement.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
heredado de HTMLElement.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Se hereda de HTMLElement.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de HTMLElement.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de HTMLElement.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
se hereda de HTMLElement.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
heredado de HTMLElement.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Heredado de HTMLElement.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: DragEvent) => any | null
heredado de HTMLElement.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.onended
onerror
onerror: OnErrorEventHandler
Valor de propiedad
OnErrorEventHandler
heredado de HTMLElement.onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
heredado de HTMLElement.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
se hereda de HTMLElement.onformdata
onfullscreenchange
onfullscreenchange: (this: Element, ev: Event) => any | null
Valor de propiedad
(this: Element, ev: Event) => any | null
se hereda de HTMLElement.onfullscreenchange
onfullscreenerror
onfullscreenerror: (this: Element, ev: Event) => any | null
Valor de propiedad
(this: Element, ev: Event) => any | null
se hereda de HTMLElement.onfullscreenerror
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.ongotpointercapture
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
heredado de HTMLElement.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
heredado de HTMLElement.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
heredado de HTMLElement.onkeyup
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onlostpointercapture
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Heredado de HTMLElement.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de HTMLElement.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de HTMLElement.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de HTMLElement.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de HTMLElement.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
heredado de HTMLElement.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
se hereda de HTMLElement.onmouseup
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
heredado de HTMLElement.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointerover
onpointerrawupdate
Solo está disponible en contextos seguros.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de HTMLElement.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
heredado de HTMLElement.onpointerup
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
heredado de HTMLElement.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.onratechange
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: UIEvent) => any | null
se hereda de HTMLElement.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de HTMLElement.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
heredado de HTMLElement.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Heredado de HTMLElement.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
Se hereda de HTMLElement.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onstalled
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
heredado de HTMLElement.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Heredado de HTMLElement.ontoggle
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de HTMLElement.ontouchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de HTMLElement.ontouchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de HTMLElement.ontouchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
heredado de HTMLElement.ontouchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
heredado de HTMLElement.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
se hereda de HTMLElement.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
se hereda de HTMLElement.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
heredado de HTMLElement.ontransitionstart
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.onwaiting
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onwebkitanimationend
onwebkitanimationiteration
Advertencia
Esta API ya está en desuso.
This is a legacy alias of onanimationiteration.
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
se hereda de HTMLElement.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: Event) => any | null
heredado de HTMLElement.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Valor de propiedad
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
heredado de HTMLElement.onwheelel
outerHTML
El outerHTML atributo de la interfaz Element DOM obtiene el fragmento HTML serializado que describe el elemento, incluidos sus descendientes.
outerHTML: string
Valor de propiedad
string
heredado de HTMLElement.outerHTML
outerText
La outerText propiedad de la interfaz HTMLElement devuelve el mismo valor que HTMLElement.innerText.
outerText: string
Valor de propiedad
string
se hereda de HTMLElement.outerText
ownerDocument
La propiedad de solo ownerDocument lectura de la interfaz Node devuelve el objeto de documento de nivel superior del nodo.
ownerDocument: Document
Valor de propiedad
heredado de HTMLElement.ownerDocument
parentElement
La propiedad de solo parentElement lectura de la interfaz Node devuelve el elemento primario del nodo DOM, o null si el nodo no tiene ningún elemento primario o su elemento primario no es un elemento DOM.
parentElement: HTMLElement | null
Valor de propiedad
HTMLElement | null
heredado de HTMLElement.parentElement
parentNode
La propiedad de solo parentNode lectura de la interfaz Node devuelve el elemento primario del nodo especificado en el árbol DOM.
parentNode: ParentNode | null
Valor de propiedad
ParentNode | null
heredado de HTMLElement.parentNode
popover
La popover propiedad de la interfaz HTMLElement obtiene y establece el estado de popover de un elemento a través de JavaScript ('auto', 'hint'o 'manual') y se puede usar para la detección de características.
popover: string | null
Valor de propiedad
string | null
Heredado de HTMLElement.popover
prefix
La Element.prefix propiedad de solo lectura devuelve el prefijo de espacio de nombres del elemento especificado o null si no se especifica ningún prefijo.
prefix: string | null
Valor de propiedad
string | null
heredado de HTMLElement.prefix
previousElementSibling
Devuelve el primer elemento relacionado anterior que es un elemento y null en caso contrario.
previousElementSibling: Element | null
Valor de propiedad
Element | null
Se hereda de HTMLElement.previousElementSibling
previousSibling
La propiedad de solo previousSibling lectura de la interfaz Node devuelve el nodo inmediatamente anterior al especificado en el elemento primario o null si el nodo especificado es el primero de esa lista.
previousSibling: ChildNode | null
Valor de propiedad
ChildNode | null
heredado de HTMLElement.previousSibling
PROCESSING_INSTRUCTION_NODE
node es un nodo ProcessingInstruction.
PROCESSING_INSTRUCTION_NODE: 7
Valor de propiedad
7
heredado de HTMLElement.PROCESSING_INSTRUCTION_NODE
role
role: string | null
Valor de propiedad
string | null
se hereda de HTMLElement.role
scrollHeight
La scrollHeight propiedad de solo lectura de la interfaz Element es una medida del alto del contenido de un elemento, incluido el contenido no visible en la pantalla debido al desbordamiento.
scrollHeight: number
Valor de propiedad
number
Heredado de HTMLElement.scrollHeight
scrollLeft
La scrollLeft propiedad de la interfaz Element obtiene o establece el número de píxeles por los que se desplaza el contenido de un elemento desde su borde izquierdo.
scrollLeft: number
Valor de propiedad
number
Heredado de HTMLElement.scrollLeft
scrollTop
La scrollTop propiedad de la interfaz Element obtiene o establece el número de píxeles por los que se desplaza el contenido de un elemento desde su borde superior.
scrollTop: number
Valor de propiedad
number
Heredado de HTMLElement.scrollTop
scrollWidth
La scrollWidth propiedad de solo lectura de la interfaz Element es una medida del ancho del contenido de un elemento, incluido el contenido no visible en la pantalla debido al desbordamiento.
scrollWidth: number
Valor de propiedad
number
heredado de HTMLElement.scrollWidth
shadowRoot
La Element.shadowRoot propiedad de solo lectura representa la raíz de sombra hospedada por el elemento .
shadowRoot: ShadowRoot | null
Valor de propiedad
ShadowRoot | null
heredado de HTMLElement.shadowRoot
slot
La slot propiedad de la interfaz Element devuelve el nombre de la ranura shadow DOM en la que se inserta el elemento.
slot: string
Valor de propiedad
string
heredado de HTMLElement.slot
spellcheck
La spellcheck propiedad de la interfaz HTMLElement representa un valor booleano que controla la sugerencia de revisión ortográfica.
spellcheck: boolean
Valor de propiedad
boolean
Heredado de HTMLElement.spellcheck
tabIndex
tagName
La tagName propiedad de solo lectura de la interfaz Element devuelve el nombre de etiqueta del elemento en el que se llama.
tagName: string
Valor de propiedad
string
Se hereda de HTMLElement.tagName
TEXT_NODE
node es un nodo Text.
TEXT_NODE: 3
Valor de propiedad
3
heredado de HTMLElement.TEXT_NODE
title
La HTMLElement.title propiedad representa el título del elemento: el texto normalmente se muestra en un elemento emergente "tooltip" cuando el mouse está sobre el nodo.
title: string
Valor de propiedad
string
Se hereda de HTMLElement.title
translate
La translate propiedad de la interfaz HTMLElement indica si los valores de atributo de un elemento y los valores de sus elementos secundarios del nodo Texto se van a traducir cuando se localiza la página o si se dejan sin cambios.
translate: boolean
Valor de propiedad
boolean
heredado de HTMLElement.translate
writingSuggestions
La writingSuggestions propiedad de la interfaz HTMLElement es una cadena que indica si las sugerencias de escritura proporcionadas por el explorador deben habilitarse bajo el ámbito del elemento o no.
writingSuggestions: string
Valor de propiedad
string
Heredado de HTMLElement.writingSuggestions
Detalles de los métodos heredados
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parámetros
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
se hereda de HTMLElement.addEventListener
addEventListener<K>(K, (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, boolean | AddEventListenerOptions)
function addEventListener<K>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parámetros
- type
-
K
- listener
-
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
se hereda de HTMLElement.addEventListener
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(Keyframe[] | PropertyIndexedKeyframes | null, number | KeyframeAnimationOptions)
function animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation
Parámetros
- keyframes
-
Keyframe[] | PropertyIndexedKeyframes | null
- 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)
El appendChild() método de la interfaz Node agrega un nodo al final de la lista de elementos secundarios de un nodo primario especificado.
function appendChild<T>(node: T): T
Parámetros
- node
-
T
Devoluciones
T
Heredado de HTMLElement.appendChild
attachInternals()
El HTMLElement.attachInternals() método devuelve un objeto ElementInternals.
function attachInternals(): ElementInternals
Devoluciones
ElementInternals
heredado de HTMLElement.attachInternals
attachShadow(ShadowRootInit)
El Element.attachShadow() método adjunta un árbol DOM de sombra al elemento especificado y devuelve una referencia a su ShadowRoot.
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()
checkVisibility(CheckVisibilityOptions)
El checkVisibility() método de la interfaz Element comprueba si el elemento está visible.
function checkVisibility(options?: CheckVisibilityOptions): boolean
Parámetros
- options
-
CheckVisibilityOptions
Devoluciones
boolean
Heredado de HTMLElement.checkVisibility
click()
El HTMLElement.click() método simula un clic del mouse en un elemento.
function click()
heredado de HTMLElement.click
cloneNode(boolean)
El cloneNode() método de la interfaz Node devuelve un duplicado del nodo en el que se llamó a este método.
function cloneNode(subtree?: boolean): Node
Parámetros
- subtree
-
boolean
Devoluciones
Node
heredado de HTMLElement.cloneNode
closest<E>(string)
function closest<E>(selectors: string): E | null
Parámetros
- selectors
-
string
Devoluciones
E | null
heredado de HTMLElement.closest
closest<K>(K)
El closest() método de la interfaz Element recorre el elemento y sus elementos primarios (encabezado hacia la raíz del documento) hasta que encuentra un nodo que coincide con el selector CSS especificado.
function closest<K>(selector: K): HTMLElementTagNameMap[K] | null
Parámetros
- selector
-
K
Devoluciones
HTMLElementTagNameMap[K] | null
heredado de HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): SVGElementTagNameMap[K] | null
Parámetros
- selector
-
K
Devoluciones
SVGElementTagNameMap[K] | null
heredado de HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): MathMLElementTagNameMap[K] | null
Parámetros
- selector
-
K
Devoluciones
MathMLElementTagNameMap[K] | null
heredado de HTMLElement.closest
compareDocumentPosition(Node)
El compareDocumentPosition() método de la interfaz Node informa de la posición de su nodo de argumento en relación con el nodo en el que se llama.
function compareDocumentPosition(other: Node): number
Parámetros
- other
-
Node
Devoluciones
number
Heredado de HTMLElement.compareDocumentPosition
computedStyleMap()
El computedStyleMap() método de la interfaz Element devuelve una interfaz StylePropertyMapReadOnly que proporciona una representación de solo lectura de un bloque de declaración CSS que es una alternativa a CSSStyleDeclaration.
function computedStyleMap(): StylePropertyMapReadOnly
Devoluciones
StylePropertyMapReadOnly
Heredado de HTMLElement.computedStyleMap
contains(Node | null)
El contains() método de la interfaz Node devuelve un valor booleano que indica si un nodo es descendiente de un nodo determinado, es decir, el propio nodo, uno de sus elementos secundarios directos (Node.childNodes), uno de los elementos secundarios directos de los elementos secundarios, etc.
function contains(other: Node | null): boolean
Parámetros
- other
-
Node | null
Devoluciones
boolean
Heredado de HTMLElement.contains
dispatchEvent(Event)
El dispatchEvent() método de EventTarget envía un evento al objeto , (sincrónicamente) invocando a los agentes de escucha de eventos afectados en el orden adecuado.
function dispatchEvent(event: Event): boolean
Parámetros
- event
-
Event
Devoluciones
boolean
Heredado de 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)
Método getAttribute() del elemento .
function getAttribute(qualifiedName: string): string | null
Parámetros
- qualifiedName
-
string
Devoluciones
string | null
Heredado de HTMLElement.getAttribute
getAttributeNames()
Método getAttributeNames() de la matriz.
function getAttributeNames(): string[]
Devoluciones
string[]
Heredado de HTMLElement.getAttributeNames
getAttributeNode(string)
Devuelve el atributo especificado del elemento especificado, como un nodo Attr.
function getAttributeNode(qualifiedName: string): Attr | null
Parámetros
- qualifiedName
-
string
Devoluciones
Attr | null
Heredado de HTMLElement.getAttributeNode
getAttributeNodeNS(string | null, string)
El getAttributeNodeNS() método de la interfaz Element devuelve el nodo Attr con espacio de nombres de un elemento.
function getAttributeNodeNS(namespace: string | null, localName: string): Attr | null
Parámetros
- namespace
-
string | null
- localName
-
string
Devoluciones
Attr | null
heredado de HTMLElement.getAttributeNodeNS
getAttributeNS(string | null, string)
El getAttributeNS() método de la interfaz Element devuelve el valor de cadena del atributo con el espacio de nombres y el nombre especificados.
function getAttributeNS(namespace: string | null, localName: string): string | null
Parámetros
- namespace
-
string | null
- localName
-
string
Devoluciones
string | null
se hereda de HTMLElement.getAttributeNS
getBoundingClientRect()
El Element.getBoundingClientRect() método devuelve una posición relativa a la ventanilla.
function getBoundingClientRect(): DOMRect
Devoluciones
DOMRect
Heredado de HTMLElement.getBoundingClientRect
getClientRects()
El getClientRects() método de la interfaz Element devuelve una colección de objetos DOMRect que indican los rectángulos delimitadores para cada cuadro de borde CSS de un cliente.
function getClientRects(): DOMRectList
Devoluciones
DOMRectList
heredado de HTMLElement.getClientRects
getElementsByClassName(string)
El método getElementsByClassName() Element devuelve un nombre o nombres de clase especificados dinámicamente.
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)
El Element.getElementsByTagName() método devuelve todos los descendientes activos del elemento especificado, pero no el propio elemento.
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
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
Parámetros
- qualifiedName
-
K
Devoluciones
HTMLCollectionOf<MathMLElementTagNameMap[K]>
Se hereda de HTMLElement.getElementsByTagName
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]>
Se hereda de HTMLElement.getElementsByTagName
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>
Heredado de HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
El Element.getElementsByTagNameNS() método devuelve un HTMLCollection dinámico de elementos con el nombre de etiqueta especificado que pertenece al espacio de nombres especificado.
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
Parámetros
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
Devoluciones
HTMLCollectionOf<HTMLElement>
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(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
Parámetros
- namespace
-
string | null
- localName
-
string
Devoluciones
HTMLCollectionOf<Element>
Heredado de HTMLElement.getElementsByTagNameNS
getHTML(GetHTMLOptions)
El getHTML() método de la interfaz Element se usa para serializar el DOM de un elemento en una cadena HTML.
function getHTML(options?: GetHTMLOptions): string
Parámetros
- options
-
GetHTMLOptions
Devoluciones
string
Heredado de HTMLElement.getHTML
getRootNode(GetRootNodeOptions)
El getRootNode() método de la interfaz Node devuelve la raíz del objeto de contexto, que opcionalmente incluye la raíz de sombra si está disponible.
function getRootNode(options?: GetRootNodeOptions): Node
Parámetros
- options
-
GetRootNodeOptions
Devoluciones
Node
heredado de HTMLElement.getRootNode
hasAttribute(string)
El Element.hasAttribute() método devuelve un valor booleano que indica si el elemento especificado tiene o no el atributo especificado.
function hasAttribute(qualifiedName: string): boolean
Parámetros
- qualifiedName
-
string
Devoluciones
boolean
Heredado de HTMLElement.hasAttribute
hasAttributeNS(string | null, string)
El hasAttributeNS() método de la interfaz Element devuelve un valor booleano que indica si el elemento actual tiene el atributo especificado con el espacio de nombres especificado.
function hasAttributeNS(namespace: string | null, localName: string): boolean
Parámetros
- namespace
-
string | null
- localName
-
string
Devoluciones
boolean
Heredado de HTMLElement.hasAttributeNS
hasAttributes()
El hasAttributes() método de la interfaz Element devuelve un valor booleano que indica si el elemento actual tiene atributos o no.
function hasAttributes(): boolean
Devoluciones
boolean
heredado de HTMLElement.hasAttributes
hasChildNodes()
El hasChildNodes() método de la interfaz Node devuelve un valor booleano que indica si el nodo especificado tiene nodos secundarios o no.
function hasChildNodes(): boolean
Devoluciones
boolean
Heredar de HTMLElement.hasChildNodes
hasPointerCapture(number)
Método hasPointerCapture() de la captura de puntero para el puntero identificado por el identificador de puntero especificado.
function hasPointerCapture(pointerId: number): boolean
Parámetros
- pointerId
-
number
Devoluciones
boolean
Heredado de HTMLElement.hasPointerCapture
hidePopover()
El hidePopover() método de la interfaz HTMLElement oculta un elemento popover (es decir, uno que tiene un atributo válido popover ) quitándolo de la capa superior y aplicarle un estilo con display: none.
function hidePopover()
Heredado de HTMLElement.hidePopover
insertAdjacentElement(InsertPosition, Element)
Método insertAdjacentElement() del objeto relativo al elemento en el que se invoca.
function insertAdjacentElement(where: InsertPosition, element: Element): Element | null
Parámetros
- where
-
InsertPosition
- element
-
Element
Devoluciones
Element | null
heredado de HTMLElement.insertAdjacentElement
insertAdjacentHTML(InsertPosition, string)
Método insertAdjacentHTML() de los nodos resultantes en el árbol DOM en una posición especificada.
function insertAdjacentHTML(position: InsertPosition, string: string)
Parámetros
- position
-
InsertPosition
- string
-
string
Se hereda de HTMLElement.insertAdjacentHTML
insertAdjacentText(InsertPosition, string)
El insertAdjacentText() método de la interfaz Element, dada una posición relativa y una cadena, inserta un nuevo nodo de texto en la posición especificada relativa al elemento desde el que se llama.
function insertAdjacentText(where: InsertPosition, data: string)
Parámetros
- where
-
InsertPosition
- data
-
string
Heredado de HTMLElement.insertAdjacentText
insertBefore<T>(T, Node | null)
El insertBefore() método de la interfaz Node inserta un nodo antes de un nodo de referencia como elemento secundario de un nodo primario especificado.
function insertBefore<T>(node: T, child: Node | null): T
Parámetros
- node
-
T
- child
-
Node | null
Devoluciones
T
heredado de HTMLElement.insertBefore
isDefaultNamespace(string | null)
El isDefaultNamespace() método de la interfaz Node acepta un URI de espacio de nombres como argumento.
function isDefaultNamespace(namespace: string | null): boolean
Parámetros
- namespace
-
string | null
Devoluciones
boolean
se hereda de HTMLElement.isDefaultNamespace
isEqualNode(Node | null)
El isEqualNode() método de la interfaz Node comprueba si dos nodos son iguales.
function isEqualNode(otherNode: Node | null): boolean
Parámetros
- otherNode
-
Node | null
Devoluciones
boolean
Heredado de HTMLElement.isEqualNode
isSameNode(Node | null)
El isSameNode() método de la interfaz Node es un alias heredado para el === operador de igualdad estricto.
function isSameNode(otherNode: Node | null): boolean
Parámetros
- otherNode
-
Node | null
Devoluciones
boolean
Heredado de HTMLElement.isSameNode
lookupNamespaceURI(string | null)
El lookupNamespaceURI() método de la interfaz Node toma un prefijo como parámetro y devuelve el URI del espacio de nombres asociado al nodo especificado si se encuentra (y null si no es así).
function lookupNamespaceURI(prefix: string | null): string | null
Parámetros
- prefix
-
string | null
Devoluciones
string | null
se hereda de HTMLElement.lookupNamespaceURI
lookupPrefix(string | null)
El lookupPrefix() método de la interfaz Node devuelve una cadena que contiene el prefijo para un URI de espacio de nombres determinado, si está presente y null , si no.
function lookupPrefix(namespace: string | null): string | null
Parámetros
- namespace
-
string | null
Devoluciones
string | null
heredado de HTMLElement.lookupPrefix
matches(string)
El matches() método de la interfaz Element comprueba si el selector CSS especificado seleccionaría el elemento.
function matches(selectors: string): boolean
Parámetros
- selectors
-
string
Devoluciones
boolean
Heredado de HTMLElement.matches
normalize()
El normalize() método de la interfaz Node coloca el nodo especificado y todo su subárbol en un formulario normalizado .
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): E | null
Parámetros
- selectors
-
string
Devoluciones
E | null
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): HTMLElementTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
HTMLElementTagNameMap[K] | null
Se hereda de HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
SVGElementTagNameMap[K] | null
Se hereda de HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
Parámetros
- selectors
-
K
Devoluciones
MathMLElementTagNameMap[K] | null
Se hereda de HTMLElement.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
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
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
Parámetros
- selectors
-
K
Devoluciones
NodeListOf<MathMLElementTagNameMap[K]>
Heredado de HTMLElement.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 HTMLElement.querySelectorAll
releasePointerCapture(number)
Método releasePointerCapture() del conjunto anteriormente para un puntero específico (PointerEvent).
function releasePointerCapture(pointerId: number)
Parámetros
- pointerId
-
number
se hereda de HTMLElement.releasePointerCapture
remove()
removeAttribute(string)
El método removeAttribute() Element quita el atributo con el nombre especificado del elemento .
function removeAttribute(qualifiedName: string)
Parámetros
- qualifiedName
-
string
Heredar de HTMLElement.removeAttribute
removeAttributeNode(Attr)
El removeAttributeNode() método de la interfaz Element quita el nodo Attr especificado del elemento .
function removeAttributeNode(attr: Attr): Attr
Parámetros
- attr
-
Attr
Devoluciones
Attr
Heredado de HTMLElement.removeAttributeNode
removeAttributeNS(string | null, string)
El removeAttributeNS() método de if you are working with HTML and you don't need to specify the requested attribute as part of a specific namespace, use el método Element.removeAttribute() en su lugar.
function removeAttributeNS(namespace: string | null, localName: string)
Parámetros
- namespace
-
string | null
- localName
-
string
Heredado de HTMLElement.removeAttributeNS
removeChild<T>(T)
El removeChild() método de la interfaz Node quita un nodo secundario del DOM y devuelve el nodo quitado.
function removeChild<T>(child: T): T
Parámetros
- child
-
T
Devoluciones
T
Heredado de HTMLElement.removeChild
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parámetros
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
Heredado de HTMLElement.removeEventListener
removeEventListener<K>(K, (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, boolean | EventListenerOptions)
function removeEventListener<K>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parámetros
- type
-
K
- listener
-
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | EventListenerOptions
Heredado de HTMLElement.removeEventListener
replaceChild<T>(Node, T)
El replaceChild() método de la interfaz Node reemplaza un nodo secundario dentro del nodo especificado (primario).
function replaceChild<T>(node: Node, child: T): T
Parámetros
- node
-
Node
- child
-
T
Devoluciones
T
Heredado de 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)
El Element.requestFullscreen() método emite una solicitud asincrónica para que el elemento se muestre en modo de pantalla completa.
function requestFullscreen(options?: FullscreenOptions): Promise<void>
Parámetros
- options
-
FullscreenOptions
Devoluciones
Promise<void>
Se hereda de HTMLElement.requestFullscreen
requestPointerLock(PointerLockOptions)
El requestPointerLock() método de la interfaz Element permite solicitar de forma asincrónica que el puntero se bloquee en el elemento especificado.
function requestPointerLock(options?: PointerLockOptions): Promise<void>
Parámetros
- options
-
PointerLockOptions
Devoluciones
Promise<void>
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)
El scroll() método de la interfaz Element desplaza el elemento a un conjunto determinado de coordenadas dentro de un elemento determinado.
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)
El scrollBy() método de la interfaz Element desplaza un elemento por la cantidad especificada.
function scrollBy(options?: ScrollToOptions)
Parámetros
- options
-
ScrollToOptions
se hereda de HTMLElement.scrollBy
scrollIntoView(boolean | ScrollIntoViewOptions)
El método de scrollIntoView() la interfaz Element desplaza los contenedores antecesor del elemento de forma que el elemento en el que scrollIntoView() se llama sea visible para el usuario.
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)
El scrollTo() método de la interfaz Element se desplaza a un conjunto determinado de coordenadas dentro de un elemento determinado.
function scrollTo(options?: ScrollToOptions)
Parámetros
- options
-
ScrollToOptions
heredado de HTMLElement.scrollTo
setAttribute(string, string)
El setAttribute() método de la interfaz Element establece el valor de un atributo en el elemento especificado.
function setAttribute(qualifiedName: string, value: string)
Parámetros
- qualifiedName
-
string
- value
-
string
Heredado de HTMLElement.setAttribute
setAttributeNode(Attr)
El setAttributeNode() método de la interfaz Element agrega un nuevo nodo Attr al elemento especificado.
function setAttributeNode(attr: Attr): Attr | null
Parámetros
- attr
-
Attr
Devoluciones
Attr | null
Se hereda de HTMLElement.setAttributeNode
setAttributeNodeNS(Attr)
El setAttributeNodeNS() método de la interfaz Element agrega un nuevo nodo Attr con espacio de nombres a un elemento .
function setAttributeNodeNS(attr: Attr): Attr | null
Parámetros
- attr
-
Attr
Devoluciones
Attr | null
Heredado de HTMLElement.setAttributeNodeNS
setAttributeNS(string | null, string, string)
setAttributeNS agrega un nuevo atributo o cambia el valor de un atributo con el espacio de nombres y el nombre especificados.
function setAttributeNS(namespace: string | null, qualifiedName: string, value: string)
Parámetros
- namespace
-
string | null
- qualifiedName
-
string
- value
-
string
Heredado de HTMLElement.setAttributeNS
setHTMLUnsafe(string)
El setHTMLUnsafe() método de la interfaz Element se usa para analizar una cadena de HTML en un DocumentFragment, filtrando opcionalmente los elementos y atributos no deseados, y los que no pertenecen en el contexto y, a continuación, usarlos para reemplazar el subárbol del elemento en el DOM.
function setHTMLUnsafe(html: string)
Parámetros
- html
-
string
Heredado de HTMLElement.setHTMLUnsafe
setPointerCapture(number)
Método setPointerCapture() del destino de captura de eventos futuros de puntero.
function setPointerCapture(pointerId: number)
Parámetros
- pointerId
-
number
Se hereda de HTMLElement.setPointerCapture
showPopover()
El showPopover() método de la interfaz HTMLElement muestra un elemento Popover_API (es decir, uno que tiene un atributo válido popover ) agregándolo a la capa superior.
function showPopover()
Heredado de HTMLElement.showPopover
toggleAttribute(string, boolean)
Método toggleAttribute() del presente y agregación si no está presente) en el elemento especificado.
function toggleAttribute(qualifiedName: string, force?: boolean): boolean
Parámetros
- qualifiedName
-
string
- force
-
boolean
Devoluciones
boolean
heredado de HTMLElement.toggleAttribute
togglePopover(boolean)
El togglePopover() método de la interfaz HTMLElement alterna un elemento Popover_API (es decir, uno que tiene un atributo válido popover ) entre los estados ocultos y mostrados.
function togglePopover(options?: boolean): boolean
Parámetros
- options
-
boolean
Devoluciones
boolean
Heredado de HTMLElement.togglePopover
webkitMatchesSelector(string)
function webkitMatchesSelector(selectors: string): boolean
Parámetros
- selectors
-
string
Devoluciones
boolean
heredado de HTMLElement.webkitMatchesSelector