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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic sizing of popups

Status
Not open for further replies.

aarrgghh

Technical User
Joined
Sep 5, 2002
Messages
60
Location
US
Hey all,

Is there a way to control the height and width of a pop-up other than explicitly stating like below?

function popUp()
{
newWindowTrue = window.open("", "", "height=525,width=725,scrollbars,");
newWindowTrue.focus();
newWindowTrue.document.write("content");
newWindowTrue.document.close();
}

The problem is, I either have too much extra blank space on the side or bottom of the popUp.

Thanks in advance.
 
newWindowTrue.resizeTo(100,200);

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top