Try observing beforeunload instead. I think that unload fires too late -- i.e. after the page has really unloaded, and thus there's nothing left of the page to do any work for you.

Walter

On Mar 9, 2011, at 3:53 PM, Joannes De KOSTER wrote:

Hello,

I try to launch a javascript when i leave a page. I tryed this way but it don't seem to be working right :

Event.observe(window, 'unload', LibererThreads);

Does anybody have an idea how to deal with this?

Thanks a lot.

--

Sincères salutations.

Joannes De KOSTER

4 impasse de l'Orangerie
30250 Villevieille
T : 04 66 53 29 54
P : 06 16 26 43 28
www.defi-sud.com

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en .

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to