473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can a window change its own properties with javascript?

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.
Jul 1 '07 #1
1 1414
Lee
Simon Wigzell said:
>
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,l ocation=no,directories=no,status=no,scrollbars=no, menubar=no,resizable=yes').focus();

Is it possible to just set the various properties:

'toolbar=no,location=no,directories=no,status=no, scrollbars=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.
--

Jul 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
3
by: Michael | last post by:
I am trying to allow a user to view a PDF in a new window. I currently have this working using the following: <a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a> The problem...
3
by: anonieko | last post by:
You can try this code: > > > > > <!--- filename: mypage.html ----> <html> ....blah blah blah <script language=JavaScript src=/Javascript/center.js></script>
9
by: Viken Karaguesian | last post by:
Hello all, I just discovered this NG, so you'll probably be getting some questions that have been brewing inside me for a while :>) I'm just an amateur who enjoys making websites. I use...
4
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
2
by: Shelly | last post by:
I have a form that updates and stays in the same window. That is the desired behavior. On this form I also have two buttons. I want those buttons to open up a new window with information taken...
24
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.