Reputation: 5879
Using Jquery, how can I get the URL of an iframe after redirection has occurred to a URL in the same domain?
Upvotes: 6
Views: 17077
Reputation: 250922
The suggestion from sunn0 should work with this slight amendment.
$("#iframeid").load(function(){
alert(this.contentWindow.location);
});
Upvotes: 8