469,303 Members | 2,007 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,303 developers. It's quick & easy.

newby wants to maximise

Hi Gurus

I am a newbie....

and I was wondering if it is possible to maximise a screen in javascript.

right now, I use this code:

A HREF="heritage.html" onClick="msgWindow=window.open
('heritage.html','fullWindow','toolbar=no,location =no,directories=no,status=
no,menubar=no,scrollbars=yes,resizable=yes,width=8 30,height=630'); return
false" onmouseover="window.status='open site in full screen'; return true"
CLASS=TP>open full screen</A>
, but I was wondering if we can fill the entire screen?

Tia

- Nicolaas
Jul 23 '05 #1
8 1579
In article <47********************@news.xtra.co.nz>, ac****@ngaru.com
enlightened us with...
Hi Gurus

I am a newbie....

and I was wondering if it is possible to maximise a screen in javascript.


Can you?
Usually.

Should you?
Absolutely not.
Very user-unfriendly. Most of your visitors will hate you and not come back.
Let them control their browser.

Those of us who use tabbed browsers will REALLY hate you. ;)
You're not just maximizing one window, but all of them.
IE is not the only browser in the world. *grins*

--
--
~kaeli~
Suicide is the most sincere form of self-criticism.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
WindAndWaves wrote:
and I was wondering if it is possible to maximise a screen in javascript.


My desktop is 3000x1200 pixels. Having a browser window that size is insane.
You are better off providing a regular link to a document and designing
that document so it will flow to fit the window size that the user thinks
suits their desktop.

<http://www.allmyfaqs.com/faq.pl?AnySizeDesign>

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #3
WindAndWaves wrote:
, but I was wondering if we can fill the entire screen?


<http://www.geocities.com/peace_cake.geo/img/fullscreen.htm>

(Courtesy of Steffen Laubner)
PointedEars
Jul 23 '05 #4
I love the way you ask a question and everyone tells you not to do it.

I have my reasons - ok - you just do not know them ;-).

It is actually for a button that people can click on that says: "full
screen"

Make sense???

Thank you,

PS still keen to hear the answer.

"WindAndWaves" <ac****@ngaru.com> wrote in message
news:47********************@news.xtra.co.nz...
Hi Gurus

I am a newbie....

and I was wondering if it is possible to maximise a screen in javascript.

right now, I use this code:

A HREF="heritage.html" onClick="msgWindow=window.open
('heritage.html','fullWindow','toolbar=no,location =no,directories=no,status= no,menubar=no,scrollbars=yes,resizable=yes,width=8 30,height=630'); return
false" onmouseover="window.status='open site in full screen'; return true"
CLASS=TP>open full screen</A>
, but I was wondering if we can fill the entire screen?

Tia

- Nicolaas

Jul 23 '05 #5
WindAndWaves wrote:
It is actually for a button that people can click on that says: "full
screen"

Make sense???
Yes, it does. Here you are:

window.open(..., ..., 'fullscreen');

Works with IE and more recent Mozillas.
[Top post]


<http://www.jibbering.com/faq/faq_notes/pots1.html#ps1TopPs>

Your Question Mark key is borken, BTW.
PointedEars
Jul 23 '05 #6
WindAndWaves wrote:
I love the way you ask a question and everyone tells you
not to do it.
No individual finds it easy to see the world through the eyes of others
(and certainly without being interested in what those others have to say
about their perceptions of the world). If you don't perceive doing
something that is commonly expressed as undesirable as being a bad idea
then it should be of benefit to you to have your horizons widened by
being told about the common perception of your proposed action. You may
not care in the slightest for the opinions of your users, but you will
be better informed.
I have my reasons - ok - you just do not know them ;-).
If you don't present the information pertinent to your question with
your questions it will remain unknown and not be considered by the
people answering it. If you then attribute the answers you don't like to
the absence of pertinent information form your post you should be able
to recognise that the fault is yours, and how to correct it.

You should also bear in mind that you have just announced that you have
wasted the time of everyone who took the trouble to answer you. Becoming
known for being a time waster will not promote fruitful interaction with
this group.
It is actually for a button that people can click on
that says: "full screen"
Is there an operating system in existence that does not present a button
(and other means) for just that task on every window (at least an OS
that uses sizeable windows)?
Make sense???
Not really. It is re-inventing the wheel, and in a form that will be
unfamiliar to the user and only available in a context alongside a
familiar alternative.
Thank you,
You are welcome.
PS still keen to hear the answer.
From a button on an HTML page it is not possible to put an existing
browser into full-screen/kiosk mode. Some
browsers/browser-configurations will allow the re-sizing of the window
to fake an approximation of a "maximised" window, but it is problematic
to determine what the actual size of the desktop is, whether it makes
sense to re-size the window (especially in tabbed and MDI browsers) or
even whether the OS recognises the concepts of desktop or window. Any
implementation stands a realistic chance of offering the user
functionality that cannot be delivered by the script, and may not make
sense anyway. And doing so in a context where a better (and easily
recognised) alternative will likely already be available to the user. An
effort to re-invent a wheel, with a predictably square outcome.
"WindAndWaves" <ac****@ngaru.com> wrote in message
news:47********************@news.xtra.co.nz...

<snip>

Please do not top-post to comp.lang.javascirpt. See the group's FAQ:-

<URL: http://jibbering.com/faq >

Richard.
Jul 23 '05 #7
On Thu, 12 Aug 2004 22:32:28 +1200, WindAndWaves <ac****@ngaru.com> wrote:
I love the way you ask a question and everyone tells you not to do it.
That's because if someone responds with something like:

You really shouldn't do that.

<List of really good reasons why>

But, if you still want to do it, here's how:

<Instructions>

Most people will ignore the list of reasons and just do it, no matter how
impractical or ill-advised.

This group is not a help desk. It's purpose isn't just to hand out
ready-made scripts for people to use. It's to discuss the various possible
approaches and their implications. If there's no problem with what the OP
wants, this usually does result in a ready-made script (or useful tips).
If there is a problem, you'll get a discussion instead.
I have my reasons - ok - you just do not know them ;-).
If they're sensible reasons, then include them. Many people ask for things
that would be unwise for deployment on the Web, but they actually have no
intention of doing that. Instead, they might want the information for
personal, or Intranet, use where the technique is perfectly acceptable.
It is actually for a button that people can click on that says: "full
screen"


I have a button on my browser (all three of them, actually) that does that.

[snipped quote]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail
Jul 23 '05 #8
In article <pI********************@news.xtra.co.nz>, ac****@ngaru.com
enlightened us with...
I love the way you ask a question and everyone tells you not to do it.

If you asked how to kill a cat in a cat group, would you expect anything
else? ;)
I have my reasons - ok - you just do not know them ;-).

It is actually for a button that people can click on that says: "full
screen"


Big difference between maximize and full-screen. Full-screen removes buttons,
toolbars, and whatnot and hides my taskbar (great for DVD/movie viewing, but
not much else). Maximize does not.
My browser already has buttons for both.
You cannot full-screen an already open window AFAIK. Thank god.
You can attempt to maximize by checking resolution and resizing the window to
that, but Netscape, Mozilla, and Opera all have optional script blockers to
prevent the resize of an existing window, so some users may click on it and
have nothing happen.

Why you want to duplicate something the browser already has buttons AND keys
for is beyond me.

Check the archives for the screen resolution. Screen res is not cross
browser. NN and IE do it different. The question has been answered 1600
times, so I'll leave it up to you to search Google.
Resize is just window.resizeTo(x,y).

--
--
~kaeli~
Humpty Dumpty was pushed!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by WindAndWaves | last post: by
9 posts views Thread by Damien | last post: by
2 posts views Thread by Steve Henderson | last post: by
4 posts views Thread by Andrew Poulos | last post: by
20 posts views Thread by Jack Schitt | last post: by
10 posts views Thread by Fred Nelson | last post: by
12 posts views Thread by Hermann W Ehlers | last post: by
reply views Thread by Rob Nicholson | last post: by
5 posts views Thread by Bernd Buldt | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.