title: return onclick value to a JavaScript function
body: <p>I have created an anchor with an onclick event which calls a JavaScript function.  The JavaScript function returns some value. I want to use that value in another JS function.</p>
  
  <p>e.g
  <code>loading()</code> will return some value which will get passed to another js function. How do I capture and store the return value, and then pass this value to that function?</p>