Edit in GitHubLog an issue

HTMLAnchorElement

Extends: HTMLElement

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

new HTMLAnchorElement(document, nodeName, namespaceURI)

Creates an instance of HTMLAnchorElement.

ParamType
document
\*
nodeName
\*
namespaceURI
\*

htmlAnchorElement.href : string

The href value for the anchor

htmlAnchorElement.pathname : string

The path portion of the anchor's href

Read only

htmlAnchorElement.protocol : string

The protocol portion of the anchor's href.

Read only

htmlAnchorElement.dataset

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

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

htmlAnchorElement.nodeName : string

Read only

htmlAnchorElement.localName : string

Read only

htmlAnchorElement.tagName : string

Read only

htmlAnchorElement.nodeType : number

Read only

htmlAnchorElement.namespaceURI : string

Read only

htmlAnchorElement.id : string

htmlAnchorElement.tabIndex : number

htmlAnchorElement.className : string

htmlAnchorElement.attributes : NamedNodeMap

Read only

htmlAnchorElement.style : Style

Read only

htmlAnchorElement.clientLeft : number

Read only

htmlAnchorElement.clientTop : number

Read only

htmlAnchorElement.clientWidth : number

Read only

htmlAnchorElement.clientHeight : number

Read only

htmlAnchorElement.height : string | Number

The height of the element

htmlAnchorElement.width : string | Number

The width of the element

htmlAnchorElement.offsetParent : Element

Read only

htmlAnchorElement.offsetLeft : number

Read only

htmlAnchorElement.offsetTop : number

Read only

htmlAnchorElement.offsetWidth : number

Read only

htmlAnchorElement.offsetHeight : number

Read only

htmlAnchorElement.scrollLeft : number

htmlAnchorElement.scrollTop : number

htmlAnchorElement.scrollWidth : number

Read only

htmlAnchorElement.scrollHeight : number

Read only

htmlAnchorElement.uxpContainer : UXPContainer

Read only

htmlAnchorElement.disabled : boolean

htmlAnchorElement.innerHTML : string

htmlAnchorElement.outerHTML : string

htmlAnchorElement.contentEditable

Read only

htmlAnchorElement.isConnected : boolean

Read only

htmlAnchorElement.parentNode : Node

Read only

htmlAnchorElement.parentElement : Element

Read only

htmlAnchorElement.firstChild : Node

Read only

htmlAnchorElement.lastChild : Node

Read only

htmlAnchorElement.previousSibling : Node

Read only

htmlAnchorElement.nextSibling : Node

Read only

htmlAnchorElement.firstElementChild : Node

Read only

htmlAnchorElement.lastElementChild : Node

Read only

htmlAnchorElement.previousElementSibling : Node

Read only

htmlAnchorElement.nextElementSibling : Node

Read only

htmlAnchorElement.textContent : string

htmlAnchorElement.childNodes : NodeList

Read only

htmlAnchorElement.children : HTMLCollection

Read only

htmlAnchorElement.ownerDocument

Read only

htmlAnchorElement.scrollIntoView()

htmlAnchorElement.scrollIntoViewIfNeeded()

htmlAnchorElement.focus()

htmlAnchorElement.blur()

htmlAnchorElement.getAttribute(name)

ParamType
name
string

htmlAnchorElement.setAttribute(name, value)

ParamType
name
string
value
string

htmlAnchorElement.removeAttribute(name)

ParamType
name
string

htmlAnchorElement.hasAttribute(name)

ParamType
name
string

htmlAnchorElement.getAttributeNode(name)

ParamType
name
string

htmlAnchorElement.setAttributeNode(newAttr)

ParamType
newAttr
\*

htmlAnchorElement.removeAttributeNode(oldAttr)

ParamType
oldAttr
\*

htmlAnchorElement.click()

htmlAnchorElement.getElementsByClassName(name)

ParamType
name
string

htmlAnchorElement.getElementsByTagName(name)

ParamType
name
string

htmlAnchorElement.querySelector(selector)

ParamType
selector
string

htmlAnchorElement.querySelectorAll(selector)

ParamType
selector
string

htmlAnchorElement.getBoundingClientRect()

htmlAnchorElement.insertAdjacentHTML(position, value)

ParamType
position
value
string

htmlAnchorElement.insertAdjacentElement(position, node)

ParamType
position
\*
node
\*

htmlAnchorElement.insertAdjacentText(position, text)

ParamType
position
\*
text
\*

htmlAnchorElement.hasChildNodes()

htmlAnchorElement.cloneNode(deep)

ParamType
deep
boolean

htmlAnchorElement.appendChild(child)

ParamType
child

htmlAnchorElement.insertBefore(child, before)

ParamType
child
before

htmlAnchorElement.replaceChild(newChild, oldChild)

ParamType
newChild
oldChild

htmlAnchorElement.removeChild(child)

ParamType
child

htmlAnchorElement.remove()

htmlAnchorElement.before(...nodes)

ParamType
...nodes

htmlAnchorElement.after(...nodes)

ParamType
...nodes

htmlAnchorElement.replaceWith(...nodes)

ParamType
...nodes

htmlAnchorElement.contains(node)

ParamType
node

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

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

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

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

htmlAnchorElement.dispatchEvent(event)

ParamType
event
\*
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.