HTMLImageElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement
- HTMLImageElement
- new HTMLImageElement(document, nodeName, namespaceURI)
- .src :
string
orFile
- .dataset
- .nodeName :
string
- .localName :
string
- .tagName :
string
- .nodeType :
number
- .namespaceURI :
string
- .id :
string
- .tabIndex :
number
- .className :
string
- .attributes :
NamedNodeMap
- .style :
Style
- .clientLeft :
number
- .clientTop :
number
- .clientWidth :
number
- .clientHeight :
number
- .height :
string
orNumber
- .width :
string
orNumber
- .offsetParent :
Element
- .offsetLeft :
number
- .offsetTop :
number
- .offsetWidth :
number
- .offsetHeight :
number
- .scrollLeft :
number
- .scrollTop :
number
- .scrollWidth :
number
- .scrollHeight :
number
- .uxpContainer :
UXPContainer
- .disabled :
boolean
- .innerHTML :
string
- .outerHTML :
string
- .contentEditable
- .isConnected :
boolean
- .parentNode :
Node
- .parentElement :
Element
- .firstChild :
Node
- .lastChild :
Node
- .previousSibling :
Node
- .nextSibling :
Node
- .firstElementChild :
Node
- .lastElementChild :
Node
- .previousElementSibling :
Node
- .nextElementSibling :
Node
- .textContent :
string
- .childNodes :
NodeList
- .children :
HTMLCollection
- .ownerDocument
- .scrollIntoView()
- .scrollIntoViewIfNeeded()
- .focus()
- .blur()
- .getAttribute(name)
- .setAttribute(name, value)
- .removeAttribute(name)
- .hasAttribute(name)
- .getAttributeNode(name)
- .setAttributeNode(newAttr)
- .removeAttributeNode(oldAttr)
- .click()
- .getElementsByClassName(name)
- .getElementsByTagName(name)
- .querySelector(selector)
- .querySelectorAll(selector)
- .getBoundingClientRect()
- .insertAdjacentHTML(position, value)
- .insertAdjacentElement(position, node)
- .insertAdjacentText(position, text)
- .hasChildNodes()
- .cloneNode(deep)
- .appendChild(child)
- .insertBefore(child, before)
- .replaceChild(newChild, oldChild)
- .removeChild(child)
- .remove()
- .before(...nodes)
- .after(...nodes)
- .replaceWith(...nodes)
- .contains(node)
- .addEventListener(eventName, callback, [capture])
- .removeEventListener(eventName, callback, [capture])
- .dispatchEvent(event)
new HTMLImageElement(document, nodeName, namespaceURI)
Creates an instance of HTMLImageElement.
Param | Type |
---|---|
document | * |
nodeName | * |
namespaceURI | * |
htmlImageElement.src : string
or File
The source of the image
htmlImageElement.dataset
Access to all the custom data attributes (data-*) set.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
htmlImageElement.nodeName : string
Read only
htmlImageElement.localName : string
Read only
htmlImageElement.tagName : string
Read only
htmlImageElement.nodeType : number
Read only
htmlImageElement.namespaceURI : string
Read only
htmlImageElement.id : string
htmlImageElement.tabIndex : number
htmlImageElement.className : string
htmlImageElement.attributes : NamedNodeMap
Read only
htmlImageElement.style : Style
Read only
htmlImageElement.clientLeft : number
Read only
htmlImageElement.clientTop : number
Read only
htmlImageElement.clientWidth : number
Read only
htmlImageElement.clientHeight : number
Read only
htmlImageElement.height : string
or Number
The height of the element
htmlImageElement.width : string
or Number
The width of the element
htmlImageElement.offsetParent : Element
Read only
htmlImageElement.offsetLeft : number
Read only
htmlImageElement.offsetTop : number
Read only
htmlImageElement.offsetWidth : number
Read only
htmlImageElement.offsetHeight : number
Read only
htmlImageElement.scrollLeft : number
htmlImageElement.scrollTop : number
htmlImageElement.scrollWidth : number
Read only
htmlImageElement.scrollHeight : number
Read only
htmlImageElement.uxpContainer : UXPContainer
Read only
htmlImageElement.disabled : boolean
htmlImageElement.innerHTML : string
htmlImageElement.outerHTML : string
htmlImageElement.contentEditable
Read only
htmlImageElement.isConnected : boolean
Read only
htmlImageElement.parentNode : Node
Read only
htmlImageElement.parentElement : Element
Read only
htmlImageElement.firstChild : Node
Read only
htmlImageElement.lastChild : Node
Read only
htmlImageElement.previousSibling : Node
Read only
htmlImageElement.nextSibling : Node
Read only
htmlImageElement.firstElementChild : Node
Read only
htmlImageElement.lastElementChild : Node
Read only
htmlImageElement.previousElementSibling : Node
Read only
htmlImageElement.nextElementSibling : Node
Read only
htmlImageElement.textContent : string
htmlImageElement.childNodes : NodeList
Read only
htmlImageElement.children : HTMLCollection
Read only
htmlImageElement.ownerDocument
Read only
htmlImageElement.scrollIntoView()
htmlImageElement.scrollIntoViewIfNeeded()
htmlImageElement.focus()
htmlImageElement.blur()
htmlImageElement.getAttribute(name)
Param | Type |
---|---|
name | string |
htmlImageElement.setAttribute(name, value)
Param | Type |
---|---|
name | string |
value | string |
htmlImageElement.removeAttribute(name)
Param | Type |
---|---|
name | string |
htmlImageElement.hasAttribute(name)
Param | Type |
---|---|
name | string |
htmlImageElement.getAttributeNode(name)
Param | Type |
---|---|
name | string |
htmlImageElement.setAttributeNode(newAttr)
Param | Type |
---|---|
newAttr | * |
htmlImageElement.removeAttributeNode(oldAttr)
Param | Type |
---|---|
oldAttr | * |
htmlImageElement.click()
htmlImageElement.getElementsByClassName(name)
Param | Type |
---|---|
name | string |
htmlImageElement.getElementsByTagName(name)
Param | Type |
---|---|
name | string |
htmlImageElement.querySelector(selector)
Param | Type |
---|---|
selector | string |
htmlImageElement.querySelectorAll(selector)
Param | Type |
---|---|
selector | string |
htmlImageElement.getBoundingClientRect()
htmlImageElement.insertAdjacentHTML(position, value)
Param | Type |
---|---|
position | |
value | string |
htmlImageElement.insertAdjacentElement(position, node)
Param | Type |
---|---|
position | * |
node | * |
htmlImageElement.insertAdjacentText(position, text)
Param | Type |
---|---|
position | * |
text | * |
htmlImageElement.hasChildNodes()
htmlImageElement.cloneNode(deep)
Param | Type |
---|---|
deep | boolean |
htmlImageElement.appendChild(child)
Param | Type |
---|---|
child | Node |
htmlImageElement.insertBefore(child, before)
Param | Type |
---|---|
child | Node |
before | Node |
htmlImageElement.replaceChild(newChild, oldChild)
Param | Type |
---|---|
newChild | Node |
oldChild | Node |
htmlImageElement.removeChild(child)
Param | Type |
---|---|
child | Node |
htmlImageElement.remove()
htmlImageElement.before(...nodes)
Param | Type |
---|---|
...nodes | Array.<Node> |
htmlImageElement.after(...nodes)
Param | Type |
---|---|
...nodes | Array.<Node> |
htmlImageElement.replaceWith(...nodes)
Param | Type |
---|---|
...nodes | Array.<Node> |
htmlImageElement.contains(node)
Param | Type |
---|---|
node | Node |
htmlImageElement.addEventListener(eventName, callback, [capture])
Param | Type | Default |
---|---|---|
eventName | * |
|
callback | * |
|
[capture] | boolean |
false |
htmlImageElement.removeEventListener(eventName, callback, [capture])
Param | Type | Default |
---|---|---|
eventName | * |
|
callback | * |
|
[capture] | boolean |
false |
htmlImageElement.dispatchEvent(event)
Param | Type |
---|---|
event | * |