I have linked a site which redirects the browser to another server with a parameter “access_token”
e.g.
http://somedomain.com/blank.html#access_token=sadf2342dsdfsd
How can I get this parameter from the URL before the page is redirected to the other server?
I think you are trying to access the address bar of a clients browser AFTER it has left your website?
That won’t be possible unless you open the site in an
iframeand then access the child frame with javascript.You can do that easily by changing the target of your link, e.g.
Change this:
To this:
Then in javascript, after the page has changed to the one with the token:
Or something similar to get the location e.g.
Or
Finally parse the URL to get the value