title: Turn a JavaScript local variable into a global variable
body: <p>I have a JavaScript function to generate a variable. That function is activated by an onclick button event.</p>
  <p>After that variable is generated, I need to use it as a global variable so that other JavaScript processes can use that variable.</p>
  <p>How do I do it?</p>