The page automatically pops another browser window (unless you have a popup blocker activated).
Download the script file [ build_a_pop.js ]
To see how to use the source code, right-click on the page and select View Source.
Tip: the example and the source code are instantly available from JavaScript Editor's Solutions pane.