VOOZH about

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

⇱ SVG Event.isTrusted Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG Event.isTrusted Property

Last Updated : 31 Mar, 2022

The SVG Event.isTrusted property is a boolean that is true when the event was generated by a user action.

Syntax:

var eventIsTrusted = event.isTrusted

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