{"id":937,"date":"2012-10-18T19:44:23","date_gmt":"2012-10-18T10:44:23","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=937"},"modified":"2012-10-18T20:18:02","modified_gmt":"2012-10-18T11:18:02","slug":"how-to-get-current-function-object-reference-in-javascript","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-get-current-function-object-reference-in-javascript\/","title":{"rendered":"How to <strong>get current object reference in javascript function<\/strong>"},"content":{"rendered":"<p>Here is code for\u00a0getting current Function object reference in javascript function. Here anchor html link<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;a onclick=&quot;javascript:setFunctionUrl(this,'\/report.htm')&quot; class=&quot;class1&quot; href=&quot;javascript:void(0);&quot;&gt;Link&lt;\/a&gt;\r\n<\/pre>\n<pre class=\"brush: jscript; title: ; toolbar: true; notranslate\" title=\"\">\r\nfunction setDepartmentForecastUrl(obj, url) {\r\n     alert(obj.html()); \/\/\/ Alerting Current object HTML\r\n     alert(obj.attr('class')); \/\/\/ Alerting Current object Class value\r\n     alert(url); \/\/\/ Alerting Current object Url Value\r\n     \r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is code for\u00a0getting current Function object reference in javascript function. Here anchor html link &lt;a onclick=&quot;javascript:setFunctionUrl(this,&#8217;\/report.htm&#8217;)&quot; class=&quot;class1&quot; href=&quot;javascript:void(0);&quot;&gt;Link&lt;\/a&gt; function setDepartmentForecastUrl(obj, url) { alert(obj.html()); \/\/\/ Alerting Current object HTML alert(obj.attr(&#8216;class&#8217;)); \/\/\/ Alerting Current object Class value alert(url); \/\/\/ Alerting Current object Url Value }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,14],"tags":[448,449,446,447],"class_list":["post-937","post","type-post","status-publish","format-standard","hentry","category-web-design","category-web-development","tag-current-object-reference-in-javascript","tag-current-object-reference-javascript","tag-get-current-function-object-reference-in-javascript","tag-how-to-get-current-function-object-reference-in-javascript"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=937"}],"version-history":[{"count":6,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/937\/revisions"}],"predecessor-version":[{"id":939,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/937\/revisions\/939"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}