Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLLinkElement

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.

interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
charset: string;
crossOrigin: string | null;
disabled: boolean;
href: string;
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
media: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
rev: string;
readonly sizes: DOMTokenList;
target: string;
type: string;
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;
}
var HTMLLinkElement: {
prototype: HTMLLinkElement;
new (): HTMLLinkElement;
}
;

§Extends

§Properties

§
as: string
[src]
§
charset: string
[src]

Sets or retrieves the character set used to encode the object.

§
crossOrigin: string | null
[src]
§
disabled: boolean
[src]
§
href: string
[src]

Sets or retrieves a destination URL or an anchor point.

§
hreflang: string
[src]

Sets or retrieves the language code of the object.

§
imageSizes: string
[src]
§
imageSrcset: string
[src]
§
integrity: string
[src]
§
media: string
[src]

Sets or retrieves the media type.

§
referrerPolicy: string
[src]
§
rel: string
[src]

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

§
readonly relList: DOMTokenList
[src]
§
rev: string
[src]

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

§
readonly sizes: DOMTokenList
[src]
§
target: string
[src]

Sets or retrieves the window or frame at which to target content.

§
type: string
[src]

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