Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 12:14 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ]  Bookmark and Share
Author Message
 Post subject: May I know what is the website javascript?
PostPosted: Mon May 11, 2009 7:17 pm 
Offline

Joined: Mon May 11, 2009 7:11 pm
Posts: 1
http://www.computerproblemfix.com/

After I visit above website and wait after loading,
when I want to close it, then it popup a messagebox whether press OK or cancel.

I want the javascript sample as above website in the html.

If anyone can help me find the javascript and reply me, I would very appreciated. Thank you.


Top
 Profile  
 
 Post subject: Re: May I know what is the website javascript?
PostPosted: Thu May 14, 2009 7:14 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
Use the onbeforeunload event.

A basic example is:
Code:
<script type="text/javascript">
window.onbeforeunload = function () {
   return "Are you really wanting to leave this page?";
}
</script>


See if it helps.

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley