Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tracking change in domain

Sri Enga
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to find out in java , when a user leaves the current domain and goes to another domain by typing another URL in address field of browser.


if i am at and if i type in the address bar.
Can I track the domain of the newer site i.e. this is only needed if the user is changing the domain through the Address bar in Internet Explorer or Location bar in Netscape.
I have tried location.hostname in javascript and it is giving me i.e. the current hostname but i could not access the ie. the new URL.
Is there a java solution for this either through invisible applets or invisible servlets, or any java function I use in a JSP , servlet etc.
Any solution in any software is ok.
Thanks for your time and help

Srini Renga
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic