Comments on: Preventing an unintended exit https://j11y.io/snippets/preventing-an-unintended-exit/ Sun, 22 Mar 2015 15:39:22 +0000 hourly 1 https://wordpress.org/?v=5.0.13 By: Joe McCann https://j11y.io/snippets/preventing-an-unintended-exit/#comment-744 Wed, 11 Mar 2009 02:25:27 +0000 https://j11y.io/?p=639#comment-744 Awesome James. I was just about to start implementing something similar in a webapp where the user’s data is being stored in a session and I need to throw this exact prompt before they leave the page. Well done.

]]>
By: Mike Branski https://j11y.io/snippets/preventing-an-unintended-exit/#comment-743 Tue, 10 Mar 2009 22:08:55 +0000 https://j11y.io/?p=639#comment-743 It’d require more overhead, but it’d been really slick if it determined if the textarea was modified or not. Say you go to edit a post and change your mind: currently it’d alert you, but if it checked for modification first, it’d be less obtrusive. I think it’d be nice if it gave focus to the modified textarea, too.

If this was modified to work with Greasemonkey, you could deploy it for all sites you visit instead of waiting on site admins or browsers to implement it.

]]>
By: Håkan Folkesson https://j11y.io/snippets/preventing-an-unintended-exit/#comment-742 Tue, 10 Mar 2009 22:04:59 +0000 https://j11y.io/?p=639#comment-742 Thanks!

]]>
By: Vasili https://j11y.io/snippets/preventing-an-unintended-exit/#comment-741 Tue, 10 Mar 2009 22:00:28 +0000 https://j11y.io/?p=639#comment-741 OMG! I’m going to add this to my CMS. Thank you! 😀

]]>