$('a[href^="#"]').click(function() { // Код return false; }); I read in the documentation that you can convert to:
$('a[href^="#"]').on('click', function() { // Код return false; }); handler is the function to be installed as a handler. Instead of a function, you can specify the value false, it will be equivalent to setting such a function: function () {return false;}.
$('a[href^="#"]').on('click', function(false) { // Код }); $('a[href^="#"]').on('click', false) { // Код }); But something is not what is not, I do not understand how, or simply do not correctly prescribe?
false. - XelaNimed