I want to implement the back button functionality so that upon clicking that the previous visited page has to be presented without reloading it, but to be seen as it was updated/visited before.
I have implemented it as
<input type="button" name="back" value="Back" onClick="history.go(-1)" />
but its trying to load the page.
Is it possible to implement back button functionality without loading the page?
No, isn’t any trick to get URL of history object – source: get full url history using javascript
You can instead set the history on cookies( i know , i know ), a website (preferably a part of them, such as body) loads with ajax.
Something like:
History will be available throught on website which you defining it.
Read about jQuery load method => http://api.jquery.com/load/
Using jQuery cookie plugin shouldn’t be troublesome