Created
September 5, 2017 15:41
-
-
Save marekkirejczyk/8c8dc24dec9e5759ea43b59bc1c6c14d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parent: | |
var frame = document.getElementById('test'); | |
r = frame.contentWindow.postMessage("DUPA", '*'); | |
Child: | |
window.addEventListener('message', function(event) { | |
console.log(event.data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment