473,388 Members | 1,335 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,388 software developers and data experts.

FullScreen

Hi,

I have this code, and he's working for about 2 years now. With a recent
computer change, he stop to work (with IE6). Now i always have the titlebar
and statusbar.

window.open(theURL, 'Page',
'screenx=0,screeny=0,toolbar=0,menubar=0,status=0, scrollbars=0,resizable=0,top=0,left=0,fullscreen=1 ');

I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..

Did someone have any idea ?

thank you.
Apr 13 '06 #1
8 2224
Andre wrote:
[...]
I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..


No, you don't. <URL:http://dorward.me.uk/tmp/fullscreen.jpeg>
PointedEars
Apr 15 '06 #2
"Andre" <we*******@cablevision.qc.ca> wrote in message
news:xA*******************@news20.bellglobal.com.. .
Hi,

I have this code, and he's working for about 2 years now. With a recent
computer change, he stop to work (with IE6). Now i always have the
titlebar and statusbar.

window.open(theURL, 'Page',
'screenx=0,screeny=0,toolbar=0,menubar=0,status=0, scrollbars=0,resizable=0,top=0,left=0,fullscreen=1 ');

I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..

Did someone have any idea ?
Try this it works for me :-

~~~~~~~~ FullScreen.html ~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

</head>
<body>

<script type="text/javascript">
<!--

function DoOpen()
{
window.open(
"FullScreenWindow.html",
null,
"scrollbars=no,channelmode=yes,fullscreen=yes,titl ebar=no"
);
}

//-->
</script>

<form>
<input type="button" name="Open" value="Open" onClick="DoOpen();">
</form>

</body>
</html>

~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~ FullScreenWindow.html ~~~~~~~~~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

<script type="text/javascript">
<!--

function Keypress()
{
this.close("yes");
}

//-->
</script>
</head>
<body onkeypress="Keypress();">
test

</body>
</html>

~~~~~~~~~~~~~~~~~~~
thank you.


Thats quite alright, hope it works for you too :)

Report back if it works or does not work still please report back.

Aaron
Apr 15 '06 #3
"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:12****************@PointedEars.de...
Andre wrote:
[...]
I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..


No, you don't. <URL:http://dorward.me.uk/tmp/fullscreen.jpeg>
PointedEars


Great one, or not for that matter :)

Needs some IE detection in there, thanks.

Aaron
Apr 15 '06 #4
Aaron Gray wrote:
"Thomas 'PointedEars' Lahn" [...] wrote [...]
Andre wrote:
[...]
I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..


No, you don't. <URL:http://dorward.me.uk/tmp/fullscreen.jpeg>
[...]


Great one, or not for that matter :)

Needs some IE detection in there, thanks.


What does IE have to do with that?
PointedEars
Apr 15 '06 #5
Aaron Gray wrote:
"Andre" [...] wrote [...]
I have this code, and he's working for about 2 years now. With a
recent computer change, he stop to work (with IE6). Now i always
have the titlebar and statusbar.

window.open(theURL, 'Page',
'screenx=0,screeny=0,toolbar=0,menubar=0,status=0, scrollbars=0,resizable=0,top=0,left=0,fullscreen=1 ');

I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..

Did someone have any idea ?
Try this it works for me :-


For appropriate values of "works".
~~~~~~~~ FullScreen.html ~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
The system identifier is missing, triggering Quirks/Compatibility Mode.

<URL:http://www.quirksmode.org/css/quirksmode.html>
<html>

<head>

</head>
The `title' element is missing for Valid HTML 4.01 Transitional.
One should be able to write Valid HTML before attempting to write
any Web-based script code.

<URL:http://validator.w3.org/>
<body>

<script type="text/javascript">
<!-- ^^^^
Anyone with a minimum clue would have stopped using this always-nonsensical,
long-since-obsolete technique by now, being discussed and recommended
against here ad nauseam now.

<URL:http://groups.google.com/groups?as_q=comment+OR+commenting+OR+hiding&as_ugr oup=comp.lang.javascript&scoring=d&filter=0>
function DoOpen()
It is not a constructor, and it is not intended to be used as such,
so the identifier should not start with a capital letter. Code style.
{
window.open(
"FullScreenWindow.html",
null,
`null' (the null, empty, or non-existent object reference) is not allowed
as second argument, which you would have known had you ever consulted any
reference material. A string value is expected here. `null' is maybe
converted to the string "null", but one should not rely on that. A window
named "null" would not make much sense anyway.

<URL:http://research.nihonsoft.org/javascript/ClientReferenceJS13/window.html#1202731>
<URL:http://developer.mozilla.org/en/docs/DOM:window.open#Return_value_and_parameters>
<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp>
"scrollbars=no,channelmode=yes,fullscreen=yes,titl ebar=no"
The OP's request was to remove title bar _and_ status bar. Either
statusbar=0 is the default, then using it as the OP already wrote did not
change anything; or it is not the default, then statusbar=0 obviously did
not work with the OP.

The reason is of course the usability improvements for IE 6 coming with
Windows XP Service Pack 2 (note that the OP wrote about "a recent computer
change"). Fortunately for users, script authors cannot work around them.

<URL:http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#EHNAI>
);
}
I seriously doubt there is any point in using this method.
//-->
See above.
</script>

<form>
The required `action' attribute is missing.
<input type="button" name="Open" value="Open" onClick="DoOpen();">
</form>
The button is not functional without client-side script support, therefore
it should probably be generated by a client-side script. Furthermore, the
`form' element is unnecessary here, especially with HTML 4.01 Transitional,
and the `name' attribute is unnecessary, too.

document.write('<input type="button" value="Open" onclick="DoOpen();">');
[...]
~~~~~~~~~~~~~~~~~~~ FullScreenWindow.html ~~~~~~~~~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

<script type="text/javascript">
<!--
See above.
function Keypress()
{
this.close("yes");
`this' in this method, if called as below, refers to the Global Object.
It is error-prone to infer that the Global Object has host-defined
properties that Window objects have. Use window.close() instead.
That said, Window::close() never took any arguments.

<URL:http://research.nihonsoft.org/javascript/ClientReferenceJS13/window.html#1201822>
<URL:http://developer.mozilla.org/en/docs/DOM:window.close>
<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/close_0.asp>
}

//-->
See above.
</script>
</head>
Not Valid, the `title' element is missing again.
<body onkeypress="Keypress();">
So *any* keypress closes the window, even a Ctrl+F or F5. However, the OP's
request included that only "ALT+F$" (probably "ALT+F4" was meant) should
close the window.
[...]
Report back if it works or does not work still please report back.


YMMD.
PointedEars
Apr 15 '06 #6
Thomas 'PointedEars' Lahn wrote on 16 apr 2006 in comp.lang.javascript:
<body onkeypress="Keypress();">


So *any* keypress closes the window, even a Ctrl+F or F5. However,
the OP's request included that only "ALT+F$" (probably "ALT+F4" was
meant) should close the window.


"ALT+F4"

Isn't that default behavour, closing the application, in a windows
environment?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 16 '06 #7
JRS: In article <12****************@PointedEars.de>, dated Sat, 15 Apr
2006 03:52:52 remote, seen in news:comp.lang.javascript, Thomas
'PointedEars' Lahn <Po*********@web.de> posted :
Andre wrote:
[...]
I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..


No, you don't. <URL:http://dorward.me.uk/tmp/fullscreen.jpeg>


Control freak. If he wants to use full-screen, let him. It is, after
all, his computer, or so he says.

Andre : be aware that TL is a recognised weirdo.

--
© John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Apr 16 '06 #8
Dr John Stockton wrote:
[...] Thomas 'PointedEars' Lahn [...] posted :
Andre wrote:
[...]
I want a fullscreen page with no bar.. anything, just the page...
forcing me to use ALT-F$ to close the page..
No, you don't. <URL:http://dorward.me.uk/tmp/fullscreen.jpeg>


Control freak. If he wants to use full-screen, let him.
It is, after all, his computer, or so he says.


He did not say at all that this is only for his computer.

<URL:http://jibbering.com/faq/#FAQ2_2>
Andre : be aware that TL is a recognised weirdo.


When they run out of valid arguments, or when they do not have any valid
argument in the first place, some people try to impose their wild
assumptions or delusions on others, and even make ad hominem attacks.
PointedEars
Apr 16 '06 #9

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

Similar topics

0
by: Paul Munly | last post by:
Hi, I'm attempting to get a Swing application to go into Exclusive Fullscreen mode and am curious if there's something that I need to do prior to attempting to grab the fullscreen window. The...
3
by: BOOGIEMAN | last post by:
os = windows xp How do I make "myprogram.py" start fullscreen at windows command prompt ? Also I made it as "myprogram.exe" with py2exe,but how to start fullscreen ?
14
by: Goldie | last post by:
Hi, I am pretty poor at JavaScript so if this is a stupid question I apologise in advance. I am wanting to make the index.html page of a site open the browser up in Full screen mode. I...
20
by: msa | last post by:
Hi there, First off, let me say that I know that launching to full screen is a bad idea. I would never do it given the choice, but I must follow orders from my boss, the boss that desparately...
10
by: aagee | last post by:
Hi all Can someone clue me in on this? I just noticed that following doesn't work as it used to: window.open(... "fullscreen=yes" ...) Used to get a window that occupied the whole screen;...
2
by: Jenny Thommann | last post by:
Hallo Ich möchte mit dem Befehl window.open ein Fullscreen-Fenster ohne Scrollbalken öffnen. Das Problem ist. Wenn ich das Fenster mit:...
1
by: efrat.yahav | last post by:
Hi, I really need your help here, I looked all over and couldn't find an answer to my problem: I developed a flash-based site in which I have a gallery of pictures and when the user presses a...
0
by: n_g | last post by:
how do i popup a message when user is running other fullscreen application? eg: i want to display phone number in corner of screen even user is playing fullscreen directx/opengl game or watching...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...

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.