iframe send variable to parent code example
Example 1: js pass variable from iframe to parent window
window.parent.zipPhoneCallback(zipphone);
Example 2: js pass variable from iframe to parent window
function zipPhoneCallback(zipphone) {
((console&&console.log)||alert)("zipphone = " + zipphone);
}