Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
toddwelstein committed Jul 30, 2024
1 parent f7f79ff commit 626afc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<p>Hello world! This is HTML5 Boilerplate.</p>
<script>
window.onload = function() {
window.parent.postMessage('Hello from iframe', 'https://www.npr.org');
window.parent.postMessage('Hello from iframe', 'https://www-s1.npr.org');
};

window.addEventListener('message', (event) => {
console.log('Message received:', event);
console.log('This is from the iframe - Message received:', event);
});
</script>

Expand Down

0 comments on commit 626afc7

Please sign in to comment.