title: Jquery Back Button.
body: <p>I want to create a button which will run a previously ran function. ie i click buttonA to run Function A then click button B to run functionB i want to have a button which allows the user to go back to functionA by clicking a back button. </p>
  
  <p>i thought i could a global variable to hold previous statements but it would not work as every function ran would overwrite the stored statements. here is some psuodo code to kind of explain what i mean </p>
  
  <pre><code>var globalvar;
  globalvar = functionA;
  function B { run globalvar};
  </code></pre>