Go back to previous page without refreshing using jquery, not angularjs
<p>I am running a script locally and in one of the functions, it goes to different page. Once it does that, I want it go to back to previous page and continue running the script locally.</p>

<p>Is there a way to go back to previous page without refreshing the page.
I used <code>parent.history.back();</code> this goes back to previous page but refreshes the page so my script stops running.</p>