Name

returnValue — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The value to be returned to the event’s source element to allow or prohibit the element’s default action connected with the event. If you set event.returnValue to false, the element does not carry out its normal operation, such as navigating to a link or submitting the form.

Example

event.returnValue = "false"

Value

Boolean value: true | false.

Default

true

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.