Window.closed Demo

Open the window, close it, and then try Focus or Blur.

closed | window object