VOOZH about

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

⇱ SVG Window.event Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG Window.event Property

Last Updated : 30 Mar, 2022

The SVG Window.event property returns the event which is currently being handled by the site's code.

Syntax:

var e = window.event

Return value: This property returns the Event which is currently being handled by the site's code.

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

Output:

👁 Image

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

Output:

👁 Image
Comment