I need to do following steps before using history.go
- I need to read the recent histories for my page
- if history matches with the link specified by me then it should open link
- or else it should alert some warning
Please help to fix this issue
I need to do following steps before using history.go
Please help to fix this issue
Read this https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history
you can manipulate the browser history using window object.
use history api I think you may complete using this.
see the demo of history api
I hope it will help full to you.