- What is the purpose of back button in browser?
- How to prevent user from going back to previous page in javascript?
What is the purpose of back button in browser?
A back button in the browser lets you back-up to the copies of pages you visited previously. The web browser's back and next buttons work well with web sites that provide information that changes infrequently, such as news and shopping web sites.
How to prevent user from going back to previous page in javascript?
function preventBack() window. history. forward(); setTimeout("preventBack()", 0); window.