get parent.location.url – iframe – from child to parent

try this:

var referrer = document.referrer;
alert(referrer);

Leave a Comment