Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface HTMLIFrameElement
implements HTMLElement
import { type HTMLIFrameElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.

Properties

deprecated
align: string

Sets or retrieves how the object is aligned with adjacent text.

allow: string
allowFullscreen: boolean
readonly
contentDocument: Document | null

Retrieves the document object of the page or frame.

readonly
contentWindow: WindowProxy | null

Retrieves the object of the specified.

deprecated
frameBorder: string

Sets or retrieves whether to display a border for the frame.

height: string

Sets or retrieves the height of the object.

deprecated
longDesc: string

Sets or retrieves a URI to a long description of the object.

deprecated
marginHeight: string

Sets or retrieves the top and bottom margin heights before displaying the text in a frame.

deprecated
marginWidth: string

Sets or retrieves the left and right margin widths before displaying the text in a frame.

name: string

Sets or retrieves the frame name.

referrerPolicy: ReferrerPolicy
readonly
sandbox: DOMTokenList
deprecated
scrolling: string

Sets or retrieves whether the frame can be scrolled.

src: string

Sets or retrieves a URL to be loaded by the object.

srcdoc: string

Sets or retrives the content of the page that is to contain.

width: string

Sets or retrieves the width of the object.

Methods

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