Interface: LinkPressTarget

The target of a link press event.

Hierarchy

  • LinkPressTarget

Properties

classAttribute

• classAttribute: string | null

The class attribute, if present.


clickedAnchorBoundingRect

• clickedAnchorBoundingRect: DOMRect

The bounding rectangle of the anchor which has been clicked. See Element.getBoundingClientRect()


dataAttributes

• dataAttributes: DataAttributes

The data- attributes, if present.

remarks Dashes are converted to camelCase. See HTMLElement.dataset.


downloadAttribute

• downloadAttribute: string | null

The download attribute, if present.


hrefAttribute

• hrefAttribute: string

The exact content of the href attribute.


hreflangAttribute

• hreflangAttribute: string | null

The hreflang attribute, if present.


idAttribute

• idAttribute: string | null

The id attribute, if present.


nameAttribute

• nameAttribute: string | null

The name attribute, if present.


page

• page: { href: string ; origin: string | null }

An object describing the page location from which the click originated.

Type declaration:

NameTypeDescription
hrefstringSee https://developer.mozilla.org/en-US/docs/Web/API/Location/href. remarks Has the special value about:blank when not bound to a URL ({ html } source).
originstring | nullSee https://developer.mozilla.org/en-US/docs/Web/API/Location/origin. remarks Has the special value null when not bound to a URL ({ html } source).

referrerpolicyAttribute

• referrerpolicyAttribute: string | null

The referrerpolicy attribute, if present.


relAttribute

• relAttribute: string | null

The rel attribute, if present.


scheme

• scheme: string

The URI scheme.


targetAttribute

• targetAttribute: string | null

The target attribute, if present.


typeAttribute

• typeAttribute: string | null

The type attribute, if present.


uri

• uri: string

The full URI of the target.