using that code, if you click the "check href" button first, you get an alert that says "about:blank" like it should, but if you click "change iframe" and allow google to load into the iframe, then click "check href", NOTHING. no alert, no nothing. How can i retrieve the location from the iframe after a page has been loaded into it?
I think it's possible location.href is not allowed to be read for security reasons. Although it seems that if you work with the iframe using it's src attribute things will work. Here's a quick example,
yeah, i actually stumbled upon reading the src attribute. but then, my ultimate goal is to have a form post variables into a page which is loaded in the iframe. the page inside the frame evaluates the vars that were posted, then it kicks to a different page depending on what the variables were. then i wanted to grab the new href of the page, and do something based on what it was. but, im thinking its not going to happen. oh well, thanks anyways!