UNPKG

lath

Version:

Seamless connection of pages.

23 lines (22 loc) 848 B
declare class Sandbox { sandbox: HTMLIFrameElement; setting?: string; private readonly blankURL; constructor(uri?: string, setting?: string, type?: 'src' | 'source'); get window(): Window; get document(): Document; get origin(): string | null; set src(src: string); setOnUnload(onunload: null | ((this: WindowEventHandlers, ev: Event) => unknown)): Promise<void>; setOnLoad(onload: (this: GlobalEventHandlers, ev: Event) => unknown): Promise<void>; setOnError(onerror: OnErrorEventHandler): Promise<void>; set(allow?: string | undefined): void; reset(allow?: string): this; open(): this; write(context?: string): this; close(): this; append(context: string | undefined): void; enter(container: HTMLElement): void; exit(): void; } export { Sandbox };