Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.dom.d.ts>parent

A modern runtime for JavaScript and TypeScript.
Go to Latest
variable parent
import { parent } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.dom.d.ts";

Refers to either the parent WindowProxy, or itself.

It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.

MDN Reference

type

WindowProxy