Widget:Google Street View
When you call your popup window, delrace a variable that holds reference to the window. Then using that variable you can control everthing on the new window. For example adding code / adding html text anything The below link has an example of how the user is controlling what text is displayed in the popup window check the section Writing To a Popup Window After It Is Open of the article