Javascript Reference
Categories: event

javascript event returnValue

@April 18, 2009, 8:33 a.m.
returnValue Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a

 

Read/Write

Provides 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. This property does not influence an actual value you may wish to return from an event handler function.

 
Example
 
evt.returnValue = false;
 
Value

Boolean value: true | false.

 
Default

true


Powered by Linode.