Warning before leaving page

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Warning before leaving page

Postby Sn3akyP3t3 » Mon Sep 10, 2012 10:37 pm

Its a users right to decide to leave a webpage, but some days there just isn't enough coffee to keep mistakes from happening. I've caught myself a few times navigating my Subsonic Tab playing music away to my homepage or something accidental such as pressing a hotkey that took me off the current page. I suggest implementing a javascript (client side) method to ask the user if he/she wishes to leave the page before navigating away. This will prevent interruption of song play.

A quick and dirty how to can be seen here, http://help.dottoro.com/ljhtbtum.php
and a test here, http://jsfiddle.net/AlienWebguy/4fNCh/

Note not all browsers support onbeforeunload either in HTML or in Javascript. Opera for example doesn't support any of that particular event.

I understand the ethics conversation behind onbeforeunload in the general web perspective, but this is for a dedicated app that the user is in charge of. http://my.opera.com/community/forums/to ... ?id=286462
Sn3akyP3t3
 
Posts: 6
Joined: Sat Jul 16, 2011 2:51 pm
Location: Earth

Re: Warning before leaving page

Postby BKKKPewsey » Tue Sep 11, 2012 12:11 am

Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Warning before leaving page

Postby Cook66 » Wed Sep 12, 2012 10:00 am

I hope to see this as an option users can enable/disable at their leisure.
Cook66
 
Posts: 21
Joined: Thu Dec 15, 2011 10:23 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 6 guests