HighDots Forums  

Can a window change its own properties with javascript?

Javascript JavaScript language (comp.lang.javascript)


Discuss Can a window change its own properties with javascript? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Simon Wigzell
 
Posts: n/a

Default Can a window change its own properties with javascript? - 07-01-2007 , 12:12 PM






I have a picture gallery webpage. Naturally I want as much space as possible
for the pictures but with browsers these days the actual available area is
only 2/3 - 3/4 of the total window. So I have the initial webpage open the
actual gallery in another window as follows:

quickgallery =
window.open(filename,'quickgallery','toolbar=no,lo cation=no,directories=no,status=no,scrollbars=no,m enubar=no,resizable=yes').focus();

Is it possible to just set the various properties:

'toolbar=no,location=no,directories=no,status=no,s crollbars=no,menubar=no,resizable=yes'

in the initial window e.g. the initial webpage sets them to it's own window
rather than opening another? If not, is there some way of tricking it e.g.
it re-opens itself with the new properties?

Thanks. I've been doing this for 5 years now and never seen this topic
discussed.



Reply With Quote
  #2  
Old   
Lee
 
Posts: n/a

Default Re: Can a window change its own properties with javascript? - 07-01-2007 , 01:23 PM






Simon Wigzell said:
Quote:
I have a picture gallery webpage. Naturally I want as much space as possible
for the pictures but with browsers these days the actual available area is
only 2/3 - 3/4 of the total window. So I have the initial webpage open the
actual gallery in another window as follows:

quickgallery =
window.open(filename,'quickgallery','toolbar=no,lo cation=no,directories=no,status=no,scrollbars=no,m enubar=no,resizable=yes').focus();

Is it possible to just set the various properties:

'toolbar=no,location=no,directories=no,status=no,s crollbars=no,menubar=no,resizable=yes'

in the initial window e.g. the initial webpage sets them to it's own window
rather than opening another? If not, is there some way of tricking it e.g.
it re-opens itself with the new properties?

Thanks. I've been doing this for 5 years now and never seen this topic
discussed.
It's been discussed. The bottom line is keep your hands off of
my window. For all you know, I've got the results of critical
research in my history, and wouldn't know how to get back to it
if you took away my menubar. Most browser designers understand
this, and won't let you change a window you didn't open.


--



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.