How would i open a new browser window (like when you use the window.open in javascript) using php? The reason i ask is because i need to open a new window when the user clicks on an image, and then the full size image is displayed in the new window. A while ago i wrote a javascript function that took in the image filename and dimensions, and then created a new window and wrote the html to it with the <img src> and everything. Of course, i can't do this now because the variables i need to pass to the function are dynamically generated, and the javascript is already written to the client's html page.