Last active
April 17, 2021 03:55
-
-
Save s0md3v/d5a91bf89709247881efefd526a115b2 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
<script> | |
function send_message() { | |
document.getElementById("frame").contentWindow.postMessage("hello there", "http://localhost/recieve.html"); | |
} | |
</script> | |
<iframe id="frame" onload="send_message()" src="recieve.html"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment