var myWindow = window.open("", "myWindow", "width=200, height=100"); // Opens a new window myWindow.document.write("

This is 'myWindow'

"); // Text in the new window myWindow.opener.document.write("

This is the source window!

"); // Text in the window