HTMLAnchorElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement
- HTMLAnchorElement
- new HTMLAnchorElement(document, nodeName, namespaceURI)
- .href :
string - .pathname :
string - .protocol :
string - .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 :
stringorNumber - .width :
stringorNumber - .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)
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 | * |
