interface dom.BeforeUnloadEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { BeforeUnloadEvent } = dom;
The beforeunload event is fired when the window, the document and its resources are about to be unloaded.