I need help to find the way to get the event before http URL hash changes.
My requirement :
http://example.com/a#b to http://example.com/a#c
Whenever user changes the hash value in the browser header, I want to check whether user has entered all the required fields in the current page. If user does not enter all the required details on the current page and if he tries to navigate back to previous page by clicking on back button or refresher the page, I want to show confirmation message to user whether he wants to save the existing changes or discard them.
If you can help me on finding any solution approach that would be great help.
Thanks for your help in advanced.
Naru