javascript - Can i read Redirect location? -


i have following webiste redirects particular resource:

foo.com -> abc.com

foo.com has no x-frame header , can iframed abc.com has x-frame header, can't iframed.

i wanted @ cost response location header (that redirect) caused url.

foo.com/redirect.com 

the response contains location header redirects.

is there's means see uts redirecting?

attempted

i tried read iframe using this.src location returned foo.com (that initial url) not abc.com.

i tried reading chrome console failed.

i tried

var ifrm = $('iframe'); var iurl = ifrm.window.location; 

any other way?

thanks

here's want:

i add html tag

<iframe src="http://foo.com"></iframe> 

now foo.com redirect abc.com. how iframe knows

oh! foo.com has redirected me abc.com!, javascript, alert user iframe redirecting!

basically: how know iframe redirecting me?


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -