Here is code for getting current Function object reference in javascript function. Here anchor html link
<a onclick="javascript:setFunctionUrl(this,'/report.htm')" class="class1" href="javascript:void(0);">Link</a>
function setDepartmentForecastUrl(obj, url) { alert(obj.html()); /// Alerting Current object HTML alert(obj.attr('class')); /// Alerting Current object Class value alert(url); /// Alerting Current object Url Value }