This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 108
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: 15357
    
    6
There is no information about what event causes the browser to navigate away/close or where it is heading.

Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Getting the next URL in onBeforUnLoad event
 
Similar Threads
Notes on Assertions
Florida league of Conservation Voters ???
Another site dedicated to sun java certification
Session
does objectives include I/O and event handling