Created
March 12, 2018 15:19
-
-
Save neko-fire/1884d93f4159f299a8b3633d3f6a3fe5 to your computer and use it in GitHub Desktop.
post messages events listener for iframes
This file contains hidden or 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
function msg(event){ | |
console.log(event); | |
} | |
window.addEventListener('message', function(e{ | |
console.log(e); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment