This example pops up a new window and then writes a string to it.

Do to new popup blockers, this code can only run when you click the following button: