My html page redirects to a different URL. I want to handle this somehow and catch the new URL, which my page is redirecting to. Is it possible through JavaScript?
EDIT:
The redirected URL is out of my domain. What I want to do is to catch the URL and make a request to the URL myself.
EDIT2:
It is not my code that is doing the redirection. It is done through some kind of third party applet.
var str = window.location.href; alert(str);This javascript code will give you the URL of any page in which this code is placed. So you might use that in your new page to get the URL if thats what you want. Else please explain in detail.