title: Determine calling function in javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/280389/how-do-you-find-out-the-caller-function-in-javascript">How do you find out the caller function in JavaScript?</a>  </p>
  </blockquote>
  
  
  
  <p>How can I find out in a javascript function which was the calling (the former in the call stack) function?</p>
  
  <p>I would like to determine if the former called function is a __doPostback in the onbeforeunload event.</p>