This example shows how to write one Javascript function that can be used for multiple pages at multiple sizes. Here the size for the window is passed to the pop-up window and data is written to the window.