Created
April 25, 2018 07:01
-
-
Save XingMXTeam/0b9790e80dbc3637886dacdff44e4810 to your computer and use it in GitHub Desktop.
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
| // URL: http://a.com/foo | |
| var win = window.open('http://b.com/bar'); | |
| win.postMessage('Hello, bar!', 'http://b.com'); | |
| // URL: http://b.com/bar | |
| 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