HTMLImageElement

Extends: HTMLElement

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement

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 *

results matching ""

    No results matching ""