Disable browser back button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 03:42 AM
Hi All,
How to disable the Browser Back button in Service Now, based on URL.
Did anyone worked on this. Any help will be greatly appreciated.
Regards,
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 04:04 AM
Hi Gaurav,
I believe that there is not any such settings since it is specific to the browser.
Can you check in the browser setting from where you can disable the back forward functionality if it is available.
Regards,
Atul Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 06:14 AM
There isn't really a ServiceNow option to do this. There are some different javascript options if you search the web, but none of them are great. What is the problem you're trying to solve by disabling the back button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2016 06:34 AM
Hi Brad,
Actually we want that once the users place an request from Service Catalog via portal, then after the order they should not be able to go back, so we wanted to restrict this back button feature of browser.
I checked various javascript options but nothing seemed to work
Regards,
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 01:47 PM
I know this post is very old but I have a working solution for this.
I saw this code some where in the community and it worked for me.
Write this in your client controller (history contains your browser history)
history.pushState(null, null, location.href);
window.onpopstate = function () {
history.go(1);
};