Parent and child windows controlling each other

This is an example of a parent and child window controlling each other or communicating with each other using JavaScript. One thing that should be done, which I really only did here for the child window, is to make sure the windows being referenced are open and have not been closed by the user.

A message from the child window will come here


Change the child window to red.



Scripts