How to make exit pop up ?

  • Rully
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 16, 2009
  • Posts: 6
  • Status: Offline

Post March 16th, 2009, 9:05 pm

Hello all ...

Newbie here.Really need a help :D I just wondering how to make an exit pop up ? what i mean here, an exit pop up only will appear when the visitor close the web. I already made it,but if i click another button navigation like "Order here", an exit pop up also will appear.How to solve this problem...? :cry:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 16th, 2009, 9:05 pm

  • firefox2442
  • Novice
  • Novice
  • No Avatar
  • Joined: Mar 20, 2009
  • Posts: 17
  • Status: Offline

Post March 20th, 2009, 10:12 pm

GOogle it , its quite easy :)
Moderator Remark: Excessive punctuation/emoticons removed
  • Rully
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 16, 2009
  • Posts: 6
  • Status: Offline

Post March 21st, 2009, 8:12 am

@firefox2442,:D that's rite bro and I already did that,but still can't find a best one :-(
  • northstjarna
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Nov 14, 2006
  • Posts: 58
  • Loc: Chertsey, UK
  • Status: Offline

Post March 26th, 2009, 3:07 pm

Why you would want to do this I do not know, It's very annoying to users... but ok.... I think put this in your header....

Code: [ Select ]
<script type="text/javascript" language="javascript" >
 
window.onUnload = function() {
     if(confirm("Would you like to go away????"){
              window.close();
     } else {
              return false;
     } // End If
} // End Funciton
 
</script>
  1. <script type="text/javascript" language="javascript" >
  2.  
  3. window.onUnload = function() {
  4.      if(confirm("Would you like to go away????"){
  5.               window.close();
  6.      } else {
  7.               return false;
  8.      } // End If
  9. } // End Funciton
  10.  
  11. </script>


If that Doesn't work try googling it...


Cheers

Andi
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post March 26th, 2009, 4:37 pm

northstjarna wrote:
Why you would want to do this I do not know, It's very annoying to users...

Ditto that. I would hate to click 'OK' every time I hit the back button or try to close the window. For the sake of user's usability, don't do it.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 174 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.