mozilla
Your Search Results

    GlobalEventHandlers.onclose

    An event handler for close events sent to the window. (Not available with Firefox 2 or Safari)

    Syntax

    window.onclose = funcRef;
    

    Parameters

    • funcRef is a reference to a function.

    Example

    window.onclose = resetThatServerThing
    

    Specifications

    Not part of specification.

    Document Tags and Contributors

    Contributors to this page: Sheppy, SphinxKnight, Rappo, kscarfone, teoli, Djc8080
    Last updated by: teoli,
    Hide Sidebar