![]() |
VOOZH | about |
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:
👁 ImageExample 2: In this example, we will use onclick event.
Output:
👁 ImageExample 3: In this example, we will use onmouseover event.
Output:
👁 ImageExample 4: In this example, we will use onmouseover event.
Output:
👁 Image