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

forcing a window size

Status
Not open for further replies.

jalbao

Programmer
Nov 27, 2000
413
0
0
US
i have a link that opens up a seperate window (_blank).

how do i use js to make the new window open up with a size of 200x200?
 
you can embed this in your new page,
<body onLoad=&quot;window.resizeTo(200, 200);&quot;>
but it seems to have different results in Netscape and IE.

better yet, don't use target=&quot;_blank&quot; use
<a href=&quot;javascript:;&quot; onClick=&quot;window.open('about.asp','FILE','width=200,height=200,scrollbars=yes,resizable,toolbar,location')&quot; >Click here</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top