webERP Forum
Browser back button - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Development Discussion & Specification (http://www.weberp.org/forum/forumdisplay.php?fid=10)
+--- Thread: Browser back button (/showthread.php?tid=874)



Browser back button - tomglare - 05-03-2013

Hello All

This is more of a general web development question than about webERP, but does anyone know how the browser's back button can be disabled? We want to put our own "back button" on the webERP
screen, which will always take the user somewhere sensible (back to the main menu more often than not), rather than back to the literally most recent page, which does not work with POST-submitted forms. I can see that people will get used to the webERP style of navigation after a while (using the quick-menu tabs etc.) but until they do, they are going to get the "page expired" message more than they would like.

I have seen some suggestions about how to do this, using javascript and the windows.history property, but can not get it to work. Would be most grateful for any suggestions.