erich.wanker Posted December 5, 2024 Posted December 5, 2024 Hi .. for the last time - i used to disable the browser Button (desktop and mobile) following script in mainform - but now it didnt work anymore.. (chrome version 131..) window.addEventListener('load', function() { window.history.pushState({ noBackExitsApp: true }, '') }) window.addEventListener('popstate', function(event) { if (event.state && event.state.noBackExitsApp) { window.ajaxRequest (MainForm.form, "Test", []); window.history.pushState({ noBackExitsApp: true }, '') } }) has anyone a working solution? ThanX Erich Quote
erich.wanker Posted December 5, 2024 Author Posted December 5, 2024 .. ok .. found a working solution with GPT-4o 😉 window.history.pushState(null, '', window.location.href); window.addEventListener('popstate', function (event) { window.history.pushState(null, '', window.location.href); window.ajaxRequest (MainForm.form, "Test", []); }); 1 Quote
Sherzod Posted December 5, 2024 Posted December 5, 2024 2 hours ago, erich.wanker said: found a working solution with GPT-4o Yes, it's a smart model! Quote
irigsoft Posted December 5, 2024 Posted December 5, 2024 2 hours ago, erich.wanker said: .. ok .. found a working solution with GPT-4o 😉 window.history.pushState(null, '', window.location.href); window.addEventListener('popstate', function (event) { window.history.pushState(null, '', window.location.href); window.ajaxRequest (MainForm.form, "Test", []); }); U-GPT (Unigui - GPT) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.