Javascript: How to get the name of function being executed?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1013239/can-i-get-the-name-of-the-currently-running-function-in-javascript">Can I get the name of the currently running function in javascript?</a>  </p>
</blockquote>



<p>What should I replace the XXXX in the following so that the alerted value is "myfunc" ? </p>

<pre><code>function myfunc(){
    alert(XXXX);
}
</code></pre>
