Is there a way to get the parent URL from an Iframe’s content?

top.location.href

But that will only work if both pages (the iframe and the main page) are being served from the same domain.

Leave a Comment