Javascript needed

Discussion in 'JavaScript' started by Rohit Patidar, Aug 14, 2010.

  1. #1
    Hello,
    I'm in need of a javascript which can catch closing of the browser. Actually onbeforeunload can catch it.But it also catches refresh and navigation of the page. I need to catch only the browser close. I need it for firefox 3.0 and IE 6&7 versions.

    i have a script based on the coordinates which can help in detecting close in IE. But it does not work for FIrefox. When we try to catch coordinates on Mouse events then it also doesn't work.

    Please can someone provide me javascript for firefox.
    Thanks.
     
    Rohit Patidar, Aug 14, 2010 IP