Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the end value of a redirected URL

Status
Not open for further replies.

kmccormick2008

Programmer
Dec 17, 2007
2
US
How can I process this redirect URL to get "redirected value" end value using JavaScript?

Lets say this URL:
http://ad.doubleclick.net/ad/website.com/;sect=;subs=;sz=115x77;ord=4771639

Redirected you to:

How can I get the end value of the redirect, " using JavaScript?

Something like this?:
var initValue = "
var newValue = ?? process(initValue); ?? // opens initValue URL and returns the redirect

document.write(newValue); //outputs "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top