Posts Tagged ‘frames’

Does location.href work for IFrames? Even Redirection?

Friday, June 11th, 2010

Short answer– yes.

I just did a test that worked with three domains–
on domain A, I had an iframe pointing to a file on domain B. Domain B’s iframe was to: alert “location.href”, write it to the document, and then redirect the browser to domain C.

All tests worked.