Client Side VBScript New Window w/ custom attributes
Posted on 2001-07-19
I'm having difficulty working out how to open a new window when a user submits a form and customize that window's attributes, such as no toolbar, no menubar, specific size etc. I expect there's a way to setup the window properties using some basic client side VBScript, but the only way I can seem to make that work is to actually Open the new window with the properties. I don't want to open the window until the user submits the form.
Here's some details:
I have a few ways to open the window when the form is submitted. I can declare a target attribute in the form declaration itself;
<form name="AppSelection" Action="chosenapp.asp" Method="POST" TARGET="NewWin">
I can also write a simple client side validation routine;
Both of these work. What I need to do is figure out how to customize the NewWin attributes. I can't use a hyperlink, I must use the form submission. What I'd like to end up with is something along the lines of:
NewWin.toolbar = no
NewWin.menubar = no
NewWin.scrollbars = yes
NewWin.status = yes
NewWin.Height = 600
NewWin.Width = 800
And then open the window using either of the two options above.