This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Getting the next URL in onBeforUnLoad event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting the next URL in onBeforUnLoad event" Watch "Getting the next URL in onBeforUnLoad event" New topic
Author

Getting the next URL in onBeforUnLoad event

Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 112
Hi guys,
Is there any way to get the next URL in the unBeforeUnLoad event of the javascript. I actually need it to check whether the next URL is on the same site or on a different site (navigating away from my site) or undefined (closing a browser window).


Regards, Fawad Ali.
Software Engineer, Stafona Inc. - My Blog
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is no information about what event causes the browser to navigate away/close or where it is heading.

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: Getting the next URL in onBeforUnLoad event