Click to See Complete Forum and Search --> : Controlling Appearance of Window


pixelrat
04-26-2003, 03:05 AM
I want to be able to control the appearance of a window ie:
scrollbars, location, resize etc.

But I want to do this from within the page itself, as with eg. window maximise scripts.

All I can find are scripts for doing this by opening from another page.

Can anyone help?

Failing that, a good workaround would be to have a new window pop up another window, then close itself.

Anyone know where can I find a script to do this?

khalidali63
04-26-2003, 06:55 AM
in the onload event this code will make a window to be closed
"self.close()"
I hope thats what you wanted..
:D

pyro
04-26-2003, 10:26 AM
You will have to open a new window and close you current one. This is due to the fact that javascript cannot control aspects of the window such as toolbar, address bar, etc, unless you are opening the window. Use the code that khalidali63 posted to close the current window (will promp the users for an ok...)