Customize confirm() and alert() a bit

This commit is contained in:
Alex Pankratov
2022-08-10 17:18:21 +02:00
parent a456a76aa7
commit c05defba0e

View File

@@ -1698,6 +1698,15 @@
return Math.min(Math.max(this, min), max); return Math.min(Math.max(this, min), max);
}; };
/*
* add a blank line to push 'Prevent this page from opening ...'
* tack-on from the actual message we are trying to display
*/
var confirm_org = window.confirm;
var alert_org = window.alert;
window.confirm = function(msg) { return confirm_org(msg + "\n "); }
window.alert = function(msg) { return alert_org (msg + "\n "); }
</script> </script>
<script type="text/javascript"> <script type="text/javascript">