Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> When A User Close The Browser Window, How to control this action
TavoxPeru
post Dec 9 2007, 04:23 AM
Post #1


Super Member
Group Icon

Group: [HOSTED]
Posts: 760
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



I know that when a user leaves your website you can perform any action if you add some code to the onunload event like for example display an alert box, pop-up a window, etc. but when the user close the browser window instead which event is fired up??? how to control this action??? is it possible to add some code to perform when this happens????

Best regards,
Go to the top of the page
 
+Quote Post
turbopowerdmaxst...
post Dec 9 2007, 06:23 AM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 391
Joined: 16-February 06
From: Kolkata, India
Member No.: 11,322



I think it should trigger the same event as it is fundamentally the same, body being unloaded. I have found this to be the case in Internet Explorer 7 and Firefox. There might be inconsistencies in other borwsers, though.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Javascript: Disable Mouse Right-click In Browser(16)
  2. Browser Quaker Script - Shock Your Visitors!(5)


 



- Lo-Fi Version Time is now: 7th October 2008 - 02:01 AM