Click to See Complete Forum and Search --> : window size without JS


PatrickLewis
02-25-2003, 02:44 PM
Is there anyway to specify a window size without JavaScript?

I have a form that submits to a new window and I did not want it to be a large window like the parent.

I have the form as

form name="blah" method=post action=saved.asp target="_new"

The target will open the action in a new window, but it is large.

gil davis
02-25-2003, 03:17 PM
No. HTML has no control over a window's properties.

Charles
02-25-2003, 03:29 PM
You can, however, employ a little JavaScript to open the window the way you would like without making the form fail when there is no JavaScript :

<form name="blah" method=post action=saved.asp target="child" onclick="window.open('', 'child', 'height=400,width=300')">