Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning a popup window

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi everyone

I know how to create a popup window - I'm currently using the following code:

function NewWindow(url, height, width) {

properties = "toolbar=0,location=0,scrollbars=1,height=" + height;
properties = properties + ",width=" + width;
properties = properties + ",left=0,top=0";
popupHandle = open(url, "tipwindow", properties);

}

With the link passing the necessary variables. What I'm wondering is: Is there anyway to control where on the screen the new window opens. I want it to open more or less in the center of the screen, but it seems to open anywhere it pleases, I'm not sure how to control it...

ANy suggestions appreciated!

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top