Web Automation Practice

Cross-Origin Communication (postMessage)

Instructions: Test communication between this parent window and the iframe below.

  1. Click the "Send Message to Iframe" button.
  2. This sends a message to the iframe, which should then display it.
  3. The iframe will automatically send a reply back to this parent window.

Validation: Your script should verify that the reply message "Message received by iframe!" appears in the output box on this page.

Message from Iframe:

No message received yet.