This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting the next URL in onBeforUnLoad event  RSS feed

 
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
Boost this thread!