HTML and CSS Reference
In-Depth Information
Step 5: Add the JavaScript to the second page
Now you need to set up the second page to allow it to receive the port and then send and re-
ceive messages through it. The code from the next listing should go in a <script> block
after the form in example-2.html.
Listing F.3. Channel messaging/example-2.html JavaScript
Search WWH ::

Custom Search