How to remove or hide "Leave this page" button in confirm navigation of browsers? <p>I want to remove/hide "Leave this page" button or want to trigger "Stay this page" button in confirm navigation of browsers?</p> <pre><code>window.onbeforeunload = function () { return "Please close the another tabs to logout.."; }; </code></pre>