Writing to a window
Question: How do I write script-generated content to another window?
To write script-generated content to another window,
use the method
To make sure that your script's output actually shows up in the other window,
docRef = top.winRef.document.open("text/html","replace");Here
Some browsers, e.g. Google Chrome or Safari, won't allow the back/forward navigation in the secondary window in this example,
with or without