Answers for "send response from iframe to parent"

0

how to access parent function from iframe

document.getElementById('targetFrame').contentWindow.targetFunction();
Posted by: Guest on July-18-2020
0

send response from iframe to parent

myIframe.contentWindow.postMessage('hello', '*');
Posted by: Guest on October-10-2021
0

send response from iframe to parent

window.onmessage = function(e) {
    if (e.data == 'hello') {
        alert('It works!');
    }
};
Posted by: Guest on October-10-2021
0

send response from iframe to parent

window.top.postMessage('hello', '*')
Posted by: Guest on October-10-2021

Code answers related to "send response from iframe to parent"

Code answers related to "Javascript"

Browse Popular Code Answers by Language