473,657 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="msgWin dow=window.open
('heritage.html ','fullWindow', 'toolbar=no,loc ation=no,direct ories=no,status =
no,menubar=no,s crollbars=yes,r esizable=yes,wi dth=830,height= 630'); return
false" onmouseover="wi ndow.status='op en 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 1715
In article <47************ ********@news.x tra.co.nz>, ac****@ngaru.co m
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.c om/faq.pl?AnySizeD esign>

--
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.c om/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.

"WindAndWav es" <ac****@ngaru.c om> wrote in message
news:47******** ************@ne ws.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="msgWin dow=window.open
('heritage.html ','fullWindow', 'toolbar=no,loc ation=no,direct ories=no,status = no,menubar=no,s crollbars=yes,r esizable=yes,wi dth=830,height= 630'); return
false" onmouseover="wi ndow.status='op en 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.c om/faq/faq_notes/pots1.html#ps1T opPs>

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.
"WindAndWav es" <ac****@ngaru.c om> wrote in message
news:47******** ************@ne ws.xtra.co.nz.. .

<snip>

Please do not top-post to comp.lang.javas cirpt. 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.c om> 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.x tra.co.nz>, ac****@ngaru.co m
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
2182
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 (I do want to learn how to do it). What I have is a search page (HTML) and an access database. Now, can someone give me some clues or links on where to start. I prefer not to install the whole PHP thing on my own computer, but just to
9
2603
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 system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation.
2
2965
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 for 5 seconds, and does it again (which is what I want). My trouble is that I can't find a way to stop it without pulling up "task manager" and killing it using brute force. I think I can use the Popup method with a nsecondstowait value so that...
4
6325
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 window goes behind it. Is there a way to know where the taskbar is?
20
2356
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 (Employees), and the other is an Address File (Addresses) linked by SSN. I've set Addresses as a Lookup Table - If the user starts typing in the SSN it should pull up the Employees records. I'm getting stuck in the Data Entry form. When I type in...
10
2927
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 routines that upload and process images. I can't get past "square one" with images in C#: This statement:
12
1146
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 following code: Dim myConnection As New SqlConnection("UID=dbuser;PWD=thepass;Data Source=SQLServer;Initial Catalog=database;")
0
997
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 there anyway to configure the size of the debug Internet Explorer window from within Visual Studio? In FrontPage, you can configure exactly how big you want the window. Thanks, Rob.
5
1228
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 remember that FileMaker allows for this, but I'd prefer a UNIX-based solution (under MacOS X). Hence my question (before I start digging): Can anyone on the list confirm that this is doable (w/o too much hassles ) with PostGresQL? Thx for your...
0
8324
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.