summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/CloseEvent.idl
blob: da2d58895940e7eeb22993f116b4c2d6807b3f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#import <DOM/Event.idl>

[]
interface CloseEvent : Event {
    constructor(DOMString type, optional CloseEventInit eventInitDict = {});

    readonly attribute boolean wasClean;
    readonly attribute unsigned short code;
    readonly attribute USVString reason;
};

dictionary CloseEventInit : EventInit {
    boolean wasClean = false;
    unsigned short code = 0;
    USVString reason = "";
};