I keep getting a Return value of underfined...

I keep getting a Return value of underfined...

How would I make this function return the actual html value but by keeping a post occur :

  1.  function clicky() {
  2.             var thisHTML1;
  3.             $(document).on('click', '#htTab a', function() {
  4.                 var thisHTML = $(this).html();
  5.                 thisHTML1 = thisHTML;
  6.                 return false;
  7.             });
  8.             alert("TESTING");
  9.             return thisHTML1;
  10.         }