I'm not sure it will work for you, but you might look at the pageshow and 
pagehide events:

http://www.webkit.org/blog/427/webkit-page-cache-i-the-basics/
http://www.webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/

https://developer.mozilla.org/en/using_firefox_1.5_caching




On 31 Oct 2011, at 11:26, Amit Agarwal wrote:

> works, but I forgot to mention. I want something which works only on tab 
> close but not on refresh. Basically a close listener but an unload listener.
> 
> 
> 
> 
> On Mon, Oct 31, 2011 at 4:44 PM, Diego Perini <diego.per...@gmail.com> wrote:
> You can try using the "onunload" or "onbeforeunload" events of that tab 
> window.
> 
> Diego
> 
> 
> On Mon, Oct 31, 2011 at 10:56 AM, Amit Agarwal <lifea...@gmail.com> wrote:
> > How to detect tab close event in webkit based browsers?
> > -Amit
> >
> > --
> > To view archived discussions from the original JSMentors Mailman list:
> > http://www.mail-archive.com/jsmentors@jsmentors.com/
> >
> > To search via a non-Google archive, visit here:
> > http://www.mail-archive.com/jsmentors@googlegroups.com/
> >
> > To unsubscribe from this group, send email to
> > jsmentors+unsubscr...@googlegroups.com
> >
> 
> --
> To view archived discussions from the original JSMentors Mailman list: 
> http://www.mail-archive.com/jsmentors@jsmentors.com/
> 
> To search via a non-Google archive, visit here: 
> http://www.mail-archive.com/jsmentors@googlegroups.com/
> 
> To unsubscribe from this group, send email to
> jsmentors+unsubscr...@googlegroups.com
> 
> 
> -- 
> To view archived discussions from the original JSMentors Mailman list: 
> http://www.mail-archive.com/jsmentors@jsmentors.com/
>  
> To search via a non-Google archive, visit here: 
> http://www.mail-archive.com/jsmentors@googlegroups.com/
>  
> To unsubscribe from this group, send email to
> jsmentors+unsubscr...@googlegroups.com

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to