![]() |
VOOZH | about |
The SVG Event.returnValue property indicates whether the default action for this event has been prevented or not.
Syntax:
var bool = event.returnValue
Return value: This property returns the boolean value of the event element.
Example 1: In this example, we will use onclick event for the SVG circle element.
Output:
👁 ImageExample 2:In this example, we will use the onclick event for the SVG text element.
Output:
👁 ImageExample 3: In this example, we will use onmouseover event for the SVG circle element.
Output:
👁 ImageExample 4: In this example, we will use onmouseover event for the SVG text element.
Output:
👁 Image