4 ms·
If you're looking to save yourself from accidental deletion, I tested the following, it adds a confirm dialog when closing the tab. data:text/html,<div content
by kevindamm 2y ago
If you're looking to save yourself from accidental deletion, I tested the following, it adds a confirm dialog when closing the tab.
data:text/html,<div contenteditable style="height:100%"><script>addEventListener("beforeunload", (e) => {e.returnValue = "?";})</script>
- crazygringo 2y agoI love that! It never occurred to me. So simple. Thank you!