returnValue property

bool get returnValue

The Event property returnValue indicates whether the default action for this event has been prevented or not.

It is set to true by default, allowing the default action to occur. Setting this property to false prevents the default action.

Note: While returnValue has been adopted into the DOM standard, it is present primarily to support existing code. Use Event.preventDefault, and Event.defaultPrevented instead of this historical property.

Implementation

external bool get returnValue;
set returnValue (bool value)

Implementation

external set returnValue(bool value);