In my website I've two pages called First.aspx and second.aspx.
From first.aspx I'm redirecting user to second.aspx clicking upon a link.
In second.aspx page, I'm using javascript:history.back() on click of a cancel input button (not asp button). This is done to avoid reloading of last page as user has not done anything on this page, and clicked on cancel to go back to the previous page.
I'm wondering whether there are any security issues or any other issues related to using this history.back()? If so, what kind of issues are they?
Instead of this, should I use asp button and redirect back to first page using response.redirect()? Which one is better approach?