window.closed property indicates whether the referenced window is closed or not.
Note: This property is read-only.
<button onclick="myOpen()">Open Window</button>
<button onclick="myClose()">Close Window</button>
<button onclick="myFunction()">Check Status</button>
var x = document.getElementById("point");
myWindow = window.open("", "myWindow", "width=400, height=300");
x.innerHTML = "'myWindow' has never been opened!";
x.innerHTML = "'myWindow' has been closed!";
x.innerHTML = "'myWindow' has been opened!";
|true||The window has been closed.|
|false||The window is open.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.
Share this Page
Meet the Author