Can anyone provide an explanation of the functionality of the following JavaScript code? Specifically, I would like a breakdown of each line in this smooth scrolling API.
$('a').click(function(){ //upon 'a' click, execute this function
$('html, body').animate({ // animate the content in the html and body
scrollTop: $( $(this).attr('href') ).offset().top //retrieve and scroll to the specified coordinates
}, 800); // scrolling speed
return false; // unknown purpose of this line
});