Image

Extends: HTMLImageElement

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

image.src : string | File

The source of the image

image.dataset

Access to all the custom data attributes (data-*) set.

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

image.nodeName : string

Read only

image.localName : string

Read only

image.tagName : string

Read only

image.nodeType : number

Read only

image.namespaceURI : string

Read only

image.id : string

image.tabIndex : number

image.className : string

image.attributes : NamedNodeMap

Read only

image.style : Style

Read only

image.clientLeft : number

Read only

image.clientTop : number

Read only

image.clientWidth : number

Read only

image.clientHeight : number

Read only

image.height : string | Number

The height of the element

image.width : string | Number

The width of the element

image.offsetParent : Element

Read only

image.offsetLeft : number

Read only

image.offsetTop : number

Read only

image.offsetWidth : number

Read only

image.offsetHeight : number

Read only

image.scrollLeft : number

image.scrollTop : number

image.scrollWidth : number

Read only

image.scrollHeight : number

Read only

image.uxpContainer : UXPContainer

Read only

image.disabled : boolean

image.innerHTML : string

image.outerHTML : string

image.contentEditable

Read only

image.isConnected : boolean

Read only

image.parentNode : Node

Read only

image.parentElement : Element

Read only

image.firstChild : Node

Read only

image.lastChild : Node

Read only

image.previousSibling : Node

Read only

image.nextSibling : Node

Read only

image.firstElementChild : Node

Read only

image.lastElementChild : Node

Read only

image.previousElementSibling : Node

Read only

image.nextElementSibling : Node

Read only

image.textContent : string

image.childNodes : NodeList

Read only

image.children : HTMLCollection

Read only

image.ownerDocument

Read only

image.scrollIntoView()

image.scrollIntoViewIfNeeded()

image.focus()

image.blur()

image.getAttribute(name)

Param
Type
name
string

image.setAttribute(name, value)

Param
Type
name
string
value
string

image.removeAttribute(name)

Param
Type
name
string

image.hasAttribute(name)

Param
Type
name
string

image.getAttributeNode(name)

Param
Type
name
string

image.setAttributeNode(newAttr)

Param
Type
newAttr
\*

image.removeAttributeNode(oldAttr)

Param
Type
oldAttr
\*

image.click()

image.getElementsByClassName(name)

Param
Type
name
string

image.getElementsByTagName(name)

Param
Type
name
string

image.querySelector(selector)

Param
Type
selector
string

image.querySelectorAll(selector)

Param
Type
selector
string

image.getBoundingClientRect()

image.insertAdjacentHTML(position, value)

Param
Type
position
value
string

image.insertAdjacentElement(position, node)

Param
Type
position
\*
node
\*

image.insertAdjacentText(position, text)

Param
Type
position
\*
text
\*

image.hasChildNodes()

image.cloneNode(deep)

Param
Type
deep
boolean

image.appendChild(child)

Param
Type
child
Node

image.insertBefore(child, before)

Param
Type
child
Node
before
Node

image.replaceChild(newChild, oldChild)

Param
Type
newChild
Node
oldChild
Node

image.removeChild(child)

Param
Type
child
Node

image.remove()

image.before(...nodes)

Param
Type
...nodes
Array.<Node>

image.after(...nodes)

Param
Type
...nodes
Array.<Node>

image.replaceWith(...nodes)

Param
Type
...nodes
Array.<Node>

image.contains(node)

Param
Type
node
Node

image.addEventListener(eventName, callback, [capture])

Param
Type
Default
eventName
\*
callback
\*
[capture]
boolean
false

image.removeEventListener(eventName, callback, [capture])

Param
Type
Default
eventName
\*
callback
\*
[capture]
boolean
false

image.dispatchEvent(event)

Param
Type
event
\*