How to get return value of $(this).attr('onclick')

How to get return value of $(this).attr('onclick')

$(this) onclick event:
  1. return confirm('Are you sure?');


On document ready, I put click bind code:
  1. $('a').bind('click', function (e) {
    	//If return value is true
    	if ( 1 == 1 ) {
    		//Show progress div
    	}
    }