HTMLAnchorElement

Extends: HTMLElement

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

new HTMLAnchorElement(document, nodeName, namespaceURI)

Creates an instance of HTMLAnchorElement.

Param Type
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 or Number

The height of the element

htmlAnchorElement.width : string or 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)

Param Type
name string

htmlAnchorElement.setAttribute(name, value)

Param Type
name string
value string

htmlAnchorElement.removeAttribute(name)

Param Type
name string

htmlAnchorElement.hasAttribute(name)

Param Type
name string

htmlAnchorElement.getAttributeNode(name)

Param Type
name string

htmlAnchorElement.setAttributeNode(newAttr)

Param Type
newAttr *

htmlAnchorElement.removeAttributeNode(oldAttr)

Param Type
oldAttr *

htmlAnchorElement.click()

htmlAnchorElement.getElementsByClassName(name)

Param Type
name string

htmlAnchorElement.getElementsByTagName(name)

Param Type
name string

htmlAnchorElement.querySelector(selector)

Param Type
selector string

htmlAnchorElement.querySelectorAll(selector)

Param Type
selector string

htmlAnchorElement.getBoundingClientRect()

htmlAnchorElement.insertAdjacentHTML(position, value)

Param Type
position
value string

htmlAnchorElement.insertAdjacentElement(position, node)

Param Type
position *
node *

htmlAnchorElement.insertAdjacentText(position, text)

Param Type
position *
text *

htmlAnchorElement.hasChildNodes()

htmlAnchorElement.cloneNode(deep)

Param Type
deep boolean

htmlAnchorElement.appendChild(child)

Param Type
child Node

htmlAnchorElement.insertBefore(child, before)

Param Type
child Node
before Node

htmlAnchorElement.replaceChild(newChild, oldChild)

Param Type
newChild Node
oldChild Node

htmlAnchorElement.removeChild(child)

Param Type
child Node

htmlAnchorElement.remove()

htmlAnchorElement.before(...nodes)

Param Type
...nodes Array.<Node>

htmlAnchorElement.after(...nodes)

Param Type
...nodes Array.<Node>

htmlAnchorElement.replaceWith(...nodes)

Param Type
...nodes Array.<Node>

htmlAnchorElement.contains(node)

Param Type
node Node

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

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

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

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

htmlAnchorElement.dispatchEvent(event)

Param Type
event *

results matching ""

    No results matching ""