Re:Show HN: Poor man's Google Docs
by wyldfire on Tuesday August 30, 2016 @02:04PM
(#12392381)
Whatever you do, don't fat-finger ctrl-w or similar. :(
[ Parent
| on HN ]
> Whatever you do, don't fat-finger ctrl-w or similar. :(
You could add a onbeforeunload handler to prevent that. You'll immediately recognize it from every other annoying web page that adds uses.
[1]: https://developer.mozilla.org/en-US/docs/Web/API/WindowEvent...
Also, Ctrl-Shift-T will usually bring back the tab you just closed with its state intact. Some JS-heavy pages don't restore cleanly, though.
GP bookmarklet isn't restored under Chrome