Which type of click handler is preferred?

Which type of click handler is preferred?

Using ".click()" and ".on("click") seem to accomplish the same thing:

  1. $('#btnStraightforward').click(function() {
  2.     alert('you mashed the straightforward button');
  3. });

  4. $( "#btnOn" ).on( "click", function() {
  5.   alert('you mashed the on click button');
  6. });

...so is there any preference for one over the other? That is, if you're only responding to one event (usch as "click", above)?