Make firefox window stay open so a webpage "reminder" is displayed

Is there a way to make a firefox window stay open so a webpage email "reminder" stays displayed?

It just needs to be able to be closed using a lot more effort than normal to close the window.

It will be a way to help me remember things more.

You could create a bookmarklet, which is a bookmark, but executes JavaScript code on the page.

To do this, right click your bookmarks bar → "Add Bookmark...". Paste this as the URL:

javascript:window.addEventListener('beforeunload', function(e) { e.preventDefault(); });

Then, when you're on a page you don't want to be easily closed, press the bookmarklet. Next time you try closing the tab or window, it'll show this message:

This lasts temporarily until you leave the page. Give it a try on this site!

4 Likes