VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-window-closed-property/

⇱ SVG Window.closed Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG Window.closed Property

Last Updated : 30 Mar, 2022

The SVG Window.closed property indicates whether the referenced window is closed or not.

Syntax:

const isClosed = windowRef.closed

Return value: This property returns the boolean value of the event element.

Example 1: In this example, we will use onclick event.

Output:

👁 Image

Example 2: In this example, we will use onclick event.

Output:

👁 Image

Example 3: In this example, we will use onmouseover event.

Output:

👁 Image

Example 4: In this example, we will use onmouseover event.

Output:

👁 Image
Comment