Click to See Complete Forum and Search --> : Is it possible to use window.open properties on current window?


CWCJimmy
12-05-2006, 04:13 PM
Hi all,

I have a page (page1), a menu screen to be precise, I would like to open directly with certain properties, which you can see below. Now I can do that by opening another page (page2) in order to launch page1 with those properties using something like the following:


newPage =window.open(page,name,"width=636,height=411,toolbar=0,scrollbars=0,resizable=0,location=0,directories=0,menubar=0,status=0");


My goal is to directly open page1 and open it with it's properties.

Any ideas?

mrhoo
12-05-2006, 04:53 PM
You can call window.resizeTo and window.moveTo to the current window,
but it is an obnoxious thing to do to your visitors. Save your own preferences
for popups, leave the user's window size the way he likes it.

CWCJimmy
12-05-2006, 05:06 PM
Thanks for the response!

Are you aware of any ways to elminate all the bars on an open page?

felgall
12-05-2006, 07:17 PM
Most browsers these days have the option for Javascript to interfere with the browser toolbars and to resize the current window disabled by default since most people don't like it when web pages rearrange their carefully sized windows. Some now insist that the address bar must always appear for all windows regardless of settings in order to ensure that the location of the page is clearly identified in order to help prevent site spoofing.

CWCJimmy
12-07-2006, 05:05 PM
Thanks Felgall