View Full Version : HTML Window Size

01-06-2004, 09:56 AM
Hi can someone help me with the following please.

I want to display a new window followed from a link to display on screen at the size of 300 wide 200 high and have no menu bar or status bar in effect a pop up window, can someone show me the coding required for this to work.

01-06-2004, 01:35 PM
<a href="pop.cfm" title="Open in New window" onclick="window.open
(this.href, 'popupwindow', 'width=300,height=200,top=50,
menubar=0,taskbar=0'); return false;">
*all code should be on one line

This should be it, although i typed it quickly from memory and I haven't tested it.
Put in the position (top, left) you want, or take it out.

I don't think you need px for measurements, but I'll soon be shouted down if I'm wrong.
Oh, and by the way, you should have posted this in the JavaScript Questions section of the forums ;)