Are you sure you want to leave this page script

Here you can request new feature you would like to see in game

Are you sure you want to leave this page script

Postby techgump » Sat Jul 30, 2011 3:37 am

I would like a small script like:
<script type="text/javascript">
window.onbeforeunload = function(){ return "Are you sure you want to leave the page?"; }
</script>

This will prevent the sudden unload of the page on an accidental "back" click or close.
User avatar
techgump

 
Posts: 1689
Joined: Sat Jul 09, 2011 12:36 am
Location: 3rd planet from a G2V star within the inner rim of the Milky Way galaxy's Orion Arm's Gould Belt

Re: Are you sure you want to leave this page script

Postby Ratburntro44 » Sat Jul 30, 2011 3:50 am

Good idea. This could help a few people.
User avatar
Ratburntro44

 
Posts: 5928
Joined: Tue Jul 12, 2011 1:23 am

Re: Are you sure you want to leave this page script

Postby Lopdo » Sat Jul 30, 2011 8:42 am

hmm... I tried it and I don't like it. I hate sites that keep bothering me when I want to close them. Misclicks aren't probably that common to warrant this, you will have to be more careful
Quis custodiet ipsos custodes?

- Feel free to correct all my grammar mistakes -
User avatar
Lopdo
Site Admin
 
Posts: 2691
Joined: Sat May 28, 2011 3:14 pm

Re: Are you sure you want to leave this page script

Postby Ratburntro44 » Sat Jul 30, 2011 3:29 pm

Good point. It could be helpful, but would more often than not be annoying.
User avatar
Ratburntro44

 
Posts: 5928
Joined: Tue Jul 12, 2011 1:23 am

Re: Are you sure you want to leave this page script

Postby Joshua » Sun Jul 31, 2011 11:30 am

I keep accidentally signing out and it really annoys me
Xerxes:Let us reason. It would be a waste. It would be madness for you and your troops to perish because of a misunderstanding. There is much our cultures could share.
Leonidas:Haven't you noticed? We've been sharing our culture with you all morning.
User avatar
Joshua

 
Posts: 3652
Joined: Fri Jul 22, 2011 1:34 pm
Location: In a toaster. Long story.

Re: Are you sure you want to leave this page script

Postby Ratburntro44 » Sun Jul 31, 2011 3:03 pm

Signing out? How do accidentally press the sign out button?
User avatar
Ratburntro44

 
Posts: 5928
Joined: Tue Jul 12, 2011 1:23 am

Re: Are you sure you want to leave this page script

Postby Joshua » Mon Aug 01, 2011 9:51 am

idk, maybe i'm just really twitchy or clumsy or something
Xerxes:Let us reason. It would be a waste. It would be madness for you and your troops to perish because of a misunderstanding. There is much our cultures could share.
Leonidas:Haven't you noticed? We've been sharing our culture with you all morning.
User avatar
Joshua

 
Posts: 3652
Joined: Fri Jul 22, 2011 1:34 pm
Location: In a toaster. Long story.

Re: Are you sure you want to leave this page script

Postby Ratburntro44 » Mon Aug 01, 2011 12:51 pm

Hmm. Either way, most people wouldn't need a leave page script.
User avatar
Ratburntro44

 
Posts: 5928
Joined: Tue Jul 12, 2011 1:23 am

Re: Are you sure you want to leave this page script

Postby Joshua » Mon Aug 01, 2011 8:36 pm

i would though, thats all that counts :mrgreen:
Xerxes:Let us reason. It would be a waste. It would be madness for you and your troops to perish because of a misunderstanding. There is much our cultures could share.
Leonidas:Haven't you noticed? We've been sharing our culture with you all morning.
User avatar
Joshua

 
Posts: 3652
Joined: Fri Jul 22, 2011 1:34 pm
Location: In a toaster. Long story.

Re: Are you sure you want to leave this page script

Postby Ratburntro44 » Mon Aug 01, 2011 10:01 pm

Then why don't you open up command prompt and enter in some code to make that happen just for you?
User avatar
Ratburntro44

 
Posts: 5928
Joined: Tue Jul 12, 2011 1:23 am

Next

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 6 guests