Image
Extends: HTMLImageElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image
-
- .src :
string|File - .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|Number - .width :
string|Number - .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)
- .src :
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
stringimage.setAttribute(name, value)
Param
Type
name
stringvalue
stringimage.removeAttribute(name)
Param
Type
name
stringimage.hasAttribute(name)
Param
Type
name
stringimage.getAttributeNode(name)
Param
Type
name
stringimage.setAttributeNode(newAttr)
Param
Type
newAttr
\*image.removeAttributeNode(oldAttr)
Param
Type
oldAttr
\*image.click()
image.getElementsByClassName(name)
Param
Type
name
stringimage.getElementsByTagName(name)
Param
Type
name
stringimage.querySelector(selector)
Param
Type
selector
stringimage.querySelectorAll(selector)
Param
Type
selector
stringimage.getBoundingClientRect()
image.insertAdjacentHTML(position, value)
Param
Type
position
value
stringimage.insertAdjacentElement(position, node)
Param
Type
position
\*node
\*image.insertAdjacentText(position, text)
Param
Type
position
\*text
\*image.hasChildNodes()
image.cloneNode(deep)
Param
Type
deep
booleanimage.appendChild(child)
Param
Type
child
image.insertBefore(child, before)
image.replaceChild(newChild, oldChild)
image.removeChild(child)
Param
Type
child
image.remove()
image.before(...nodes)
Param
Type
...nodes
image.after(...nodes)
Param
Type
...nodes
image.replaceWith(...nodes)
Param
Type
...nodes
image.contains(node)
Param
Type
node
image.addEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalseimage.removeEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalseimage.dispatchEvent(event)
Param
Type
event
\*