title: return to the same script event by click "back" button in the browser
body: <p>I have HTML form (buttons, inputs, etc).
  Each component as its own event that trigger specific script.
  I want the browser to remember which action happened when the user press the &quot;back&quot; button.
  (Example: If the user presses the 'blue button', then he can return to the same place when he clicks &quot;back&quot; in the browser).</p>
  <p>I thought of doing this by using local storage in every event that triggered.
  Then at the beginning of the code to check which local storage is exist and trigger the event again.</p>
  <p>But it seems ineffective to me.
  Anyone have a better idea?</p>
  <p>Thanks.</p>