js iframe send link to parent code example
Example 1: iframe parent url
var url = (window.location != window.parent.location)
? document.referrer
: document.location.href;
Example 2: js pass variable from iframe to parent window
window.parent.zipPhoneCallback(zipphone);