Web Hosting Talk







View Full Version : Specifying dimensions of new window


seodevhead
01-04-2006, 11:31 PM
Hey guys... I have a form that submits to a page with the attribute target="new" so it opens up in a new window. What I want to know how to do is specify the size of the window that opens... for instance only make it open 200x200 pixels. Any ideas how to go about doing this? Thanks!

mitchlrm
01-05-2006, 12:07 AM
You need to use javascript window.open

webhostcompany
01-05-2006, 05:55 PM
specifically:

window.open(url,'name','height=400,width=200');

NorthWest
01-05-2006, 06:02 PM
<a href="#" onclick="Popup=window.open('URL GOES HERE','Popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no, width=200,height=200'); return false;">URL TITLE GOES HERE</a>


also there is just window.resize, there are a few ways to do this.

I am sure if you type that in at google you will get 2,000,000 results