event.returnValue is deprecated. Please use the standard event.preventDefault() instead event.returnValue is deprecated. Please use the standard event.preventDefault() instead ajax ajax

event.returnValue is deprecated. Please use the standard event.preventDefault() instead


This is only a warning: your code still works, but probably won't work in the future as the method is deprecated. See the relevant source of Chromium and corresponding patch.

This has already been recognised and fixed in jQuery 1.11 (see here and here).


Just for other's reference, I just received this and found it was due to AngularJS. It's for backwards compatibility:

if (!event.preventDefault) {    event.preventDefault = function() {        event.returnValue = false; //ie    };}


If you using Bootstrap:

The current version of Bootstrap (3.0.2) (with jQuery 1.10.2 & Chrome) seems to generate this warning as well.

(It does so on Twitter too, BTW.)

Update

The current version of Bootstrap (3.1.0) no longer seems to generate this warning.