aspose file tools*
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
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
 
 
subject: Getting the next URL in onBeforUnLoad event