473,233 Members | 3,106 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,233 software developers and data experts.

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 1701
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: WindAndWaves | last post by:
Hi Gurus I am keen to make a search page on a website, but I have absolutely zero experience with PHP. I am going to hire an expert, but I thought that it may pay to try it a bit first myself...
9
by: Damien | last post by:
I have just built a simple stopwatch application, but when i f5 to get things goings i get this message, An unhandled exception of type 'System.ArithmeticException' occurred in...
2
by: Steve Henderson | last post by:
I have really surprised myself and written a script that actually works! <grin>. As you will be able to tell, I'm really, really new to this scripting stuff... My script does a task and then sleeps...
4
by: Andrew Poulos | last post by:
If I use this code to maximise a browser window: window.moveTo(0,0); window.resizeTo(screen.width,screen.height); it works but on Windows the user can have a taskbar visible and the browser...
20
by: Jack Schitt | last post by:
I thought I was starting to get a handle on Access, until I tried doing something useful...now I'm stuck. I have a DB with two tables - to keep it simple I'll say that one is an Employee File...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
12
by: Hermann W Ehlers | last post by:
Hi I need help at the very beginning. I have been writing classic ASP for some time, but getting data out of a SQL database and displaying a single value eludes me. So far I have the...
0
by: Rob Nicholson | last post by:
When debugging an ASP.NET program, I keep having to maximise the Internet Explorer window to full screen (to check that the grid based controls layout okay at 1024x768 screen resolution). Is...
5
by: Bernd Buldt | last post by:
Howdy! I'd like to set up a database (mostly a bibliography), which I'd like to connect to a webpage such that simple queries to the database can be made by visitors of my homepage. I seem to...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.