This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Change in Domain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Change in Domain" Watch "Change in Domain" New topic

Change in Domain

Sri Enga
Ranch Hand

Joined: Feb 02, 2001
Posts: 51
First of all sorry for the multiple posts , but all of a sudden no one is responding to my question thus these multiple posts in various categories.
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
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
I am closing this thread. Please look for the other one at

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Change in Domain
It's not a secret anymore!