event.returnValue = bool; var bool = event.returnValue;
returnValue was introduced into the DOM by Internet Explorer 6, and due to that browser's ubiquity became so commonly used that other browsers eventually implemented it as well. It has been adopted into the DOM specification, primarily to ensure that existing web content continues to function going forward.
New projects should generally avoid using
returnValue, although they may if they choose to do so.
|DOM Standard |
BCD tables only load in the browser