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 :
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)
Creates an instance of HTMLAnchorElement.
Param | Type |
---|---|
document | \* |
nodeName | \* |
namespaceURI | \* |
The href
value for the anchor
The path portion of the anchor's href
Read only
The protocol portion of the anchor's href
.
Read only
Access to all the custom data attributes (data-*) set.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
Read only
Read only
Read only
Read only
Read only
htmlAnchorElement.attributes : NamedNodeMap
Read only
Read only
Read only
Read only
Read only
Read only
The height of the element
The width of the element
htmlAnchorElement.offsetParent : Element
Read only
Read only
Read only
Read only
Read only
Read only
Read only
htmlAnchorElement.uxpContainer : UXPContainer
Read only
Read only
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.childNodes : NodeList
Read only
htmlAnchorElement.children : HTMLCollection
Read only
Read only
Param | Type |
---|---|
name | string |
Param | Type |
---|---|
name | string |
value | string |
Param | Type |
---|---|
name | string |
Param | Type |
---|---|
name | string |
Param | Type |
---|---|
name | string |
Param | Type |
---|---|
newAttr | \* |
Param | Type |
---|---|
oldAttr | \* |
Param | Type |
---|---|
name | string |
Param | Type |
---|---|
name | string |
Param | Type |
---|---|
selector | string |
Param | Type |
---|---|
selector | string |
Param | Type |
---|---|
position | |
value | string |
Param | Type |
---|---|
position | \* |
node | \* |
Param | Type |
---|---|
position | \* |
text | \* |
Param | Type |
---|---|
deep | boolean |
Param | Type |
---|---|
child | Node |
Param | Type |
---|---|
child | Node |
before | Node |
Param | Type |
---|---|
newChild | Node |
oldChild | Node |
Param | Type |
---|---|
child | Node |
Param | Type |
---|---|
...nodes | Array.<Node> |
Param | Type |
---|---|
...nodes | Array.<Node> |
Param | Type |
---|---|
...nodes | Array.<Node> |
Param | Type |
---|---|
node | Node |
Param | Type | Default |
---|---|---|
eventName | \* |
|
callback | \* |
|
[capture] | boolean |
false |
Param | Type | Default |
---|---|---|
eventName | \* |
|
callback | \* |
|
[capture] | boolean |
false |
Param | Type |
---|---|
event | \* |