Click to See Complete Forum and Search --> : New window with properties selected from FORM


folsombob
12-30-2002, 04:03 PM
Hi, all

New to this Forum, but I've already seen some great Posts and Replies.

I've been successful in creating a new popup window using a FORM to set all of the properties, such as bgcolor, background image, etc.

And, I've been able to separately (with scripts from online) to create a new window that fills the screen completely, WIthout the TITLE bar and WIthout any vertical scrollbar.

Now, I've been UNsuccessful in combining the two. Any clues?

The fullscreen window was accomplished by using a frameset.

Thanks in advance,

Zach Elfers
12-30-2002, 04:08 PM
You don't need to use a frameset!! Just do fullscreen=yes


newWin = window.open("","new window","height=500,width=500,fullscreen=yes,scrollbars=no");
newWin.document.write("<body bgcolor=\"" + formData + "\" etc etc");

<form>
<input type="text" name="formData">

folsombob
01-02-2003, 04:30 PM
Originally posted by Zach Elfers
You don't need to use a frameset!! Just do fullscreen=yes


newWin = window.open("","new window","height=500,width=500,fullscreen=yes,scrollbars=no");
newWin.document.write("<body bgcolor=\"" + formData + "\" etc etc");

<form>
<input type="text" name="formData">

=========

Hi, Zach

Thanks for the reply.

I've used the fullscreen=yes,scrollbars=no and although it does create a new window without the TITLE bar, the vertical scrollbar still appears -- it just doesn't have the elevator bar in it, and the entire scrollbar space is dimmed.

Here's a portion of thescript that I had found that creates a frameset:

var frameString=""+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"

As you can see, the bottom row has no height. When the new window appears with a frame set, the scrollbars for the top row are set to "auto" and the bottom row to "no", which creates a true full window without even a dimmed vertical scrollbar.

Thanks for your help.

folsombob
01-09-2003, 11:05 PM
Originally posted by Zach Elfers
You don't need to use a frameset!! Just do fullscreen=yes


newWin = window.open("","new window","height=500,width=500,fullscreen=yes,scrollbars=no");
newWin.document.write("<body bgcolor=\"" + formData + "\" etc etc");

<form>
<input type="text" name="formData">

Hello, again, Zach

I found the answer.
Yes, use the code you gave, but rather than use scrollbars=no in the new window properties, I used the BODY attribute of SCROLL:

newWin.document.write("<body scroll=\"no\" + etc.

This created a new window, fullscreen without title or status bars, etc., and no scrollbars, not even dimmed.

Thanks again.