Easy Tutorial
❮ Met Node Isequalnode Prop Audio Src ❯

Window closed Property


Definition and Usage

The closed property returns a Boolean value indicating whether the window has been closed.

Syntax


Browser Support

All major browsers support the closed property.


Example

Check if the new window "myWindow" has been closed:

function checkWin(){
    if (!myWindow){
        document.getElementById("msg").innerHTML="My window was not opened!";
    }
    else{
        if (myWindow.closed){
            document.getElementById("msg").innerHTML="My window is closed!";
        }
        else{
            document.getElementById("msg").innerHTML="My window is not closed!";
        }
    }    
}

❮ Met Node Isequalnode Prop Audio Src ❯