This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the next URL in onBeforUnLoad event

 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no information about what event causes the browser to navigate away/close or where it is heading.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic