Skip to main content
Module

x/evt/lib/types/index.ts>dom.HTMLLinkElement

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLLinkElement
implements HTMLElement, LinkStyle
import { type dom } from "https://deno.land/x/evt@v2.4.13/lib/types/index.ts";
const { HTMLLinkElement } = dom;

Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.

Properties

as: string
deprecated
charset: string
crossOrigin: string | null
disabled: boolean
href: string

Sets or retrieves a destination URL or an anchor point.

hreflang: string

Sets or retrieves the language code of the object.

imageSizes: string
imageSrcset: string
integrity: string
media: string

Sets or retrieves the media type.

referrerPolicy: string
rel: string

Sets or retrieves the relationship between the object and the destination of the link.

readonly
relList: DOMTokenList
deprecated
rev: string
readonly
sizes: DOMTokenList
deprecated
target: string
type: string

Sets or retrieves the MIME type of the object.

Methods

addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void