open all the url from iframe in parent window code example
Example: iframe parent url
var url = (window.location != window.parent.location)
? document.referrer
: document.location.href;
var url = (window.location != window.parent.location)
? document.referrer
: document.location.href;