OnWindowClose Event?

R

Rob

I want to caputure the last URL the user visited before the browser
(firefox) is closed?
Is there any method that I can call? Onpageunload() works?
 
E

Evertjan.

Rob wrote on 27 jan 2009 in comp.lang.javascript:
I want to caputure the last URL the user visited before the browser
(firefox) is closed?
Is there any method that I can call? Onpageunload() works?

And capture it to where? To IE or Safati?

How would Onpageunload() know you are gowing to close the browser?
 
R

Rob

Rob wrote on 27 jan 2009 in comp.lang.javascript:


And capture it to where? To IE or Safati?

How would Onpageunload() know you are gowing to close the browser?

That is what I am wondering about. I want to write it to some files,
some FireFox extensions allow you to do that.
OnPageUnload obviously does not qualify because it cannot distinguish
whether the user closed the browser/tab or
simply navigate to another URL. Any idea?
 
E

Evertjan.

Rob wrote on 27 jan 2009 in comp.lang.javascript:

[please do not quote signatures on usenet]
That is what I am wondering about. I want to write it to some files,
some FireFox extensions allow you to do that.
OnPageUnload obviously does not qualify because it cannot distinguish
whether the user closed the browser/tab or
simply navigate to another URL. Any idea?

Yes, I think it is impossible in a unchanged [by plugins, etc] browser,
since it is non of the business of the page to know what I do with my
browser, and rightfully so.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,116
Messages
2,570,699
Members
47,274
Latest member
SeleneHgw8

Latest Threads

Top