Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29994 > unrolled thread

Full screen button

Started byemf <emfril@gmail.com>
First post2016-03-14 21:13 -0400
Last post2016-07-23 04:37 -0700
Articles 20 on this page of 21 — 9 participants

Back to article view | Back to comp.lang.javascript


Contents

  Full screen button emf <emfril@gmail.com> - 2016-03-14 21:13 -0400
    Re: Full screen button Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-15 08:44 +0100
      Re: Full screen button John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-15 09:44 +0000
        Re: Full screen button "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-15 12:16 +0100
          Re: Full screen button John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-15 20:13 +0000
            Re: Full screen button "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-15 22:18 +0100
              Re: Full screen button John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-16 15:56 +0000
                Re: Full screen button "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-16 17:36 +0100
                  Re: Full screen button John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-17 10:44 +0000
                    Re: Full screen button "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-17 13:31 +0100
                      Re: Full screen button John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-18 09:28 +0000
                        Re: Full screen button "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-18 10:42 +0100
                    Re: Full screen button Aleksandro <aleksandro@gmx.com> - 2016-03-17 23:30 -0300
      Re: Full screen button emf <emfril@gmail.com> - 2016-03-17 06:03 -0400
        Re: Full screen button "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-17 11:51 +0100
      Re: Full screen button Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-03-20 21:12 +0000
    Re: Full screen button Stefan Weiss <krewecherl@gmail.com> - 2016-03-15 10:32 +0100
      Re: Full screen button Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-15 22:34 +0100
      Re: Full screen button emf <emfril@gmail.com> - 2016-03-17 03:58 -0400
        Re: Full screen button emf <emfril@gmail.com> - 2016-03-17 04:45 -0400
    Re: Full screen button markluvji1@gmail.com - 2016-07-23 04:37 -0700

Page 1 of 2  [1] 2  Next page →


#29994 — Full screen button

Fromemf <emfril@gmail.com>
Date2016-03-14 21:13 -0400
SubjectFull screen button
Message-ID<nc7njs$1509$1@gioia.aioe.org>
I need a button to turn the browser to full-screen mode to run some eye 
exercises:

http://emf.neocities.org/ix/eyeExercises.html

I've found some code on the web that does this for the current page, but 
returns to browser to normal screen when clicking on a link:

function requestFullScreen() {
   var el = document.body;
   // Supports most browsers and their versions.
   var requestMethod = el.requestFullScreen ||
       el.webkitRequestFullScreen
       || el.mozRequestFullScreen || el.msRequestFullScreen;
   if (requestMethod) {
     // Native full screen.
     requestMethod.call(el);
   } else if (typeof window.ActiveXObject !== "undefined") {
     // Older IE.
     var wscript = new ActiveXObject("WScript.Shell");
     if (wscript !== null) {
       wscript.SendKeys("{F11}");
     }
   }
}

How can I make it stay in full screen when you click on a link, like 
when you press F11?

emf

-- 
Natal Transits Calculator
http://emf.neocities.org/nt/nataltransits.html

[toc] | [next] | [standalone]


#29995

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2016-03-15 08:44 +0100
Message-ID<4449708.yzpMCgJpUJ@PointedEars.de>
In reply to#29994
emf wrote:
^^^
For the last time now, get a real name.

> I need a button to turn the browser to full-screen mode to run some eye
> exercises:
> 
> http://emf.neocities.org/ix/eyeExercises.html

OK.
 
> I've found some code on the web that does this for the current page, but
> returns to browser to normal screen when clicking on a link:
> 
> […]
>    } else if (typeof window.ActiveXObject !== "undefined") {
>      // Older IE.
>      var wscript = new ActiveXObject("WScript.Shell");
>      if (wscript !== null) {
>        wscript.SendKeys("{F11}");
>      }

You do not want to do *that*.

> How can I make it stay in full screen when you click on a link, like
> when you press F11?

AFAIK, and I think unfortunately, you cannot.

You should design the exercises so that they work with any viewport size.  
And you should use CSS animations if possible.  At least read on how to 
create smooth animations with scripting as your current eye tests do not 
have smooth movement.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#29999

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-03-15 09:44 +0000
Message-ID<a7mfebplbjsd6f0d214spkolsrbl5jpq5q@4ax.com>
In reply to#29995
On Tue, 15 Mar 2016 08:44:23 +0100, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:

>emf wrote:
>^^^
>For the last time now, get a real name.
  <snip>

In English law that *is* a real name.

  John

[toc] | [prev] | [next] | [standalone]


#30001

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-03-15 12:16 +0100
Message-ID<XnsA5CC7CE491A32eejj99@194.109.6.166>
In reply to#29999
John Harris <niam@jghnorth.org.uk.invalid> wrote on 15 Mar 2016 in 
comp.lang.javascript:

> On Tue, 15 Mar 2016 08:44:23 +0100, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> wrote:
> 
>>emf wrote:
>>^^^
>>For the last time now, get a real name.
>   <snip>
> 
> In English law that *is* a real name.

Usenet and this NG are not subjected to English legislation, 
but to Netiquette.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#30006

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-03-15 20:13 +0000
Message-ID<v5rgebplea1m03nln232tb3m9s4k59e6dc@4ax.com>
In reply to#30001
On Tue, 15 Mar 2016 12:16:38 +0100, "Evertjan."
<exxjxw.hannivoort@inter.nl.net> wrote:

>John Harris <niam@jghnorth.org.uk.invalid> wrote on 15 Mar 2016 in 
>comp.lang.javascript:
>
>> On Tue, 15 Mar 2016 08:44:23 +0100, Thomas 'PointedEars' Lahn
>> <PointedEars@web.de> wrote:
>> 
>>>emf wrote:
>>>^^^
>>>For the last time now, get a real name.
>>   <snip>
>> 
>> In English law that *is* a real name.
>
>Usenet and this NG are not subjected to English legislation, 
>but to Netiquette.

I'm pointing out that the German meaning of "real name" is not the
same as the meaning in other countries.

If you want your Netiquette guideline to talk about permitted names
then you have to avoid terms that vary with location. (And "legal
name" doesn't work either.)

  John

[toc] | [prev] | [next] | [standalone]


#30009

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-03-15 22:18 +0100
Message-ID<XnsA5CCE3012EF7Aeejj99@194.109.6.166>
In reply to#30006
John Harris <niam@jghnorth.org.uk.invalid> wrote on 15 Mar 2016 in 
comp.lang.javascript:

> On Tue, 15 Mar 2016 12:16:38 +0100, "Evertjan."
> <exxjxw.hannivoort@inter.nl.net> wrote:
> 
>>John Harris <niam@jghnorth.org.uk.invalid> wrote on 15 Mar 2016 in 
>>comp.lang.javascript:
[..]
>>> In English law that *is* a real name.
>>
>>Usenet and this NG are not subjected to English legislation, 
>>but to Netiquette.
> 
> I'm pointing out that the German meaning of "real name" is not the
> same as the meaning in other countries.

No, you did not even mention anything German.

What has Germany to do with it?

The words "real name" don't even exist in German,
like they do not in Indonesian, Sanskrit and Swahili.
 
> If you want your Netiquette guideline to talk about permitted names
> then you have to avoid terms that vary with location. (And "legal
> name" doesn't work either.)
> 
>   John
> 



-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#30018

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-03-16 15:56 +0000
Message-ID<s50jeb1scjismgcn28s4vkooqphq016doo@4ax.com>
In reply to#30009
On Tue, 15 Mar 2016 22:18:55 +0100, "Evertjan."
<exxjxw.hannivoort@inter.nl.net> wrote:

>John Harris <niam@jghnorth.org.uk.invalid> wrote on 15 Mar 2016 in 
>comp.lang.javascript:
>
>> On Tue, 15 Mar 2016 12:16:38 +0100, "Evertjan."
>> <exxjxw.hannivoort@inter.nl.net> wrote:
>> 
>>>John Harris <niam@jghnorth.org.uk.invalid> wrote on 15 Mar 2016 in 
>>>comp.lang.javascript:
>[..]
>>>> In English law that *is* a real name.
>>>
>>>Usenet and this NG are not subjected to English legislation, 
>>>but to Netiquette.
>> 
>> I'm pointing out that the German meaning of "real name" is not the
>> same as the meaning in other countries.
>
>No, you did not even mention anything German.
>
>What has Germany to do with it?

Surely it's obvious. We assume that Thomas believes the term "real
name" has a meaning. It's most likely that meaning is the one
appropriate to Thomas's location. Thomas is German. Hence 'German
meaning'.


>The words "real name" don't even exist in German,
>like they do not in Indonesian, Sanskrit and Swahili.
  <snip>

The words don't exist in Dutch either, but you seem to be using them
without problems.

  John

[toc] | [prev] | [next] | [standalone]


#30019

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-03-16 17:36 +0100
Message-ID<XnsA5CDB32A77ACCeejj99@194.109.6.166>
In reply to#30018
John Harris <niam@jghnorth.org.uk.invalid> wrote on 16 Mar 2016 in 
comp.lang.javascript:

>>What has Germany to do with it?
> 
> Surely it's obvious. We assume that Thomas 

Who is "we"?

Why select a group that you surmize have a goup's meaning?

> believes the term "real
> name" has a meaning. It's most likely 

I disagree that Thomas "most likely" acts and thinks as a German,
and thinks like a speaker of German.

> that meaning is the one appropriate to Thomas's location. 

Why would Thomas have an "appropriate" meaning anyway?

> Thomas is German. Hence 'German meaning'.

What nonsense, why assume people of a country have a single meaning,
or should have a meaning dependent on their language?

Why assume German is only spoken in Germany, or do you think he has a 
meaning appropriate fore wherever German is spoken>?

May I remind you "real name" is NOT German in the first place.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#30033

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-03-17 10:44 +0000
Message-ID<qf2lebpep63thapl7ed4vlijgmoqurmjr9@4ax.com>
In reply to#30019
On Wed, 16 Mar 2016 17:36:45 +0100, "Evertjan."
<exxjxw.hannivoort@inter.nl.net> wrote:

  <snip>
>May I remind you "real name" is NOT German in the first place.

Let's finish discussing how to discuss and go back to the original
problem.

Thomas insists that authors display their "real name" in all their
Usenet articles.

What do you think he means by "real name"? Do you have a meaning for
"real name" in Usenet articles?

In my country I can have as many names as I like and they can be
anything I like. I don't need permission for this. If I want one of my
names to be Qwertyuiop it's perfectly legal. Now what does "real name"
mean here? How would anyone decide whether Qwertyuiop is a "real name"
or not?

Does your country have rules saying which are "real names" and which
are not? Does Usenet?

  John

[toc] | [prev] | [next] | [standalone]


#30035

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-03-17 13:31 +0100
Message-ID<XnsA5CE899E5EC31eejj99@194.109.6.166>
In reply to#30033
John Harris <niam@jghnorth.org.uk.invalid> wrote on 17 Mar 2016 in 
comp.lang.javascript:

> Thomas insists that authors display their "real name" in all their
> Usenet articles.
> 
> What do you think he means by "real name"? Do you have a meaning for
> "real name" in Usenet articles?

I have no idea and I am not very interested. Usning the name of another 
participant would perhaps count as an negative example.

But the notion that someone's ideas must be coupled on someone's nationality, 
language or abode, seems, while possible, not something to assume by default.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#30046

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-03-18 09:28 +0000
Message-ID<bginebp6fs91haim51felsjorru3jf6obh@4ax.com>
In reply to#30035
On Thu, 17 Mar 2016 13:31:42 +0100, "Evertjan."
<exxjxw.hannivoort@inter.nl.net> wrote:

>John Harris <niam@jghnorth.org.uk.invalid> wrote on 17 Mar 2016 in 
>comp.lang.javascript:
>
>> Thomas insists that authors display their "real name" in all their
>> Usenet articles.
>> 
>> What do you think he means by "real name"? Do you have a meaning for
>> "real name" in Usenet articles?
>
>I have no idea and I am not very interested.
  <snip>

So, you don't care whether or not Thomas has a good reason to scream
'Use your real name' at people. That's ok, but it would have saved
both of us time if you had said so earlier.

  John

[toc] | [prev] | [next] | [standalone]


#30047

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-03-18 10:42 +0100
Message-ID<XnsA5CF6CF51EEEAeejj99@194.109.6.166>
In reply to#30046
John Harris <niam@jghnorth.org.uk.invalid> wrote on 18 Mar 2016 in 
comp.lang.javascript:

>>I have no idea and I am not very interested.
>   <snip>
> 
> So, you don't care whether or not Thomas has a good reason to scream
> 'Use your real name' at people.

Should I care?

> That's ok, but it would have saved
> both of us time if you had said so earlier.

Well, my time is my own, don't you dare presume on that.

I never said that I cared, that too seems your presumption only.

I said that presuming that someone's nationality, abode or language would 
predispose of what is ment by "real name" in English is ludicrous.

btw, what is this preoccupation with saving time, 
in sensu strictior you cannot?

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#30044

FromAleksandro <aleksandro@gmx.com>
Date2016-03-17 23:30 -0300
Message-ID<ncfp2v$jpl$1@dont-email.me>
In reply to#30033
On 17/03/16 07:44, John Harris wrote:
> On Wed, 16 Mar 2016 17:36:45 +0100, "Evertjan."
> <exxjxw.hannivoort@inter.nl.net> wrote:
> 
>   <snip>
>> May I remind you "real name" is NOT German in the first place.
> 
> Let's finish discussing how to discuss and go back to the original
> problem.
> 
> Thomas insists that authors display their "real name" in all their
> Usenet articles.
> 
> What do you think he means by "real name"? Do you have a meaning for
> "real name" in Usenet articles?
> 
> In my country I can have as many names as I like and they can be
> anything I like. I don't need permission for this. If I want one of my
> names to be Qwertyuiop it's perfectly legal. Now what does "real name"
> mean here? How would anyone decide whether Qwertyuiop is a "real name"
> or not?
> 
> Does your country have rules saying which are "real names" and which
> are not? Does Usenet?

In my country (Chile) there are certain rules, you can't give your
children names that can be offensive or derogatory or that can mean
anything like that when read in a certain order.

lol

[toc] | [prev] | [next] | [standalone]


#30032

Fromemf <emfril@gmail.com>
Date2016-03-17 06:03 -0400
Message-ID<ncdvck$c86$1@gioia.aioe.org>
In reply to#29995
On 2016-03-15 03:44, Thomas 'PointedEars' Lahn wrote:
> emf wrote:
...
>> How can I make it stay in full screen when you click on a link, like
>> when you press F11?
>
> AFAIK, and I think unfortunately, you cannot.

Yes, it seems after all that you are right. I've removed the full screen 
button.

> You should design the exercises so that they work with any viewport size.

No, not this, they are not supposed to do that, Especially the first 3 
exercises.

> And you should use CSS animations if possible.  At least read on how to
> create smooth animations with scripting as your current eye tests do not
> have smooth movement.

Yes, I have to look into this sometime in the future -- for the next 
version of the first 2 exercises. Though I am not sure that as they are 
they are much worse than the ones of the original executable file.

emf

-- 
Spherical Triangle Calculator
http://emf.neocities.org/tr/spherical.html

[toc] | [prev] | [next] | [standalone]


#30034

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2016-03-17 11:51 +0100
Message-ID<nce26i$fj3$1@solani.org>
In reply to#30032
emf wrote:

> On 2016-03-15 03:44, Thomas 'PointedEars' Lahn wrote:
>
>> You should design the exercises so that they work with any viewport size.
> 
> No, not this, they are not supposed to do that, Especially the first 3
> exercises.

You may consider to rewrite these exercises to use the viewport size
instead of the screen size.

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#30064

FromDr J R Stockton <reply1600@merlyn.demon.co.uk.invalid>
Date2016-03-20 21:12 +0000
Message-ID<SheNdwF4Ix7WFwqE@invalid.uk.co.demon.merlyn.invalid>
In reply to#29995
In comp.lang.javascript message <4449708.yzpMCgJpUJ@PointedEars.de>,
Tue, 15 Mar 2016 08:44:23, Thomas 'PointedEars' Lahn
<PointedEars@web.de> posted:

>emf wrote:
>^^^
>For the last time now, get a real name.
 ^^^^^^^^^^^^^^^^^^^^^

That is a promise which I greatly hope, with the expectation of
disappointment, that you will keep.  Remember the words of the Bard.

Man to small boy : "What's your dog's name?"
Reply : "I don't know.  We call him Rover."

-- 
 (c) John Stockton, Surrey, UK.  ¬@merlyn.demon.co.uk   Turnpike v6.05   MIME.
 Merlyn Web Site <                       > - FAQish topics, acronyms, & links.

[toc] | [prev] | [next] | [standalone]


#29997

FromStefan Weiss <krewecherl@gmail.com>
Date2016-03-15 10:32 +0100
Message-ID<nc8krh$7ge$1@news.albasani.net>
In reply to#29994
On 03/15/2016 02:13, emf wrote:
> I need a button to turn the browser to full-screen mode to run some eye
> exercises:
> 
> http://emf.neocities.org/ix/eyeExercises.html
> 
> I've found some code on the web that does this for the current page, but
> returns to browser to normal screen when clicking on a link:
> 
> function requestFullScreen() {
[snip]
> How can I make it stay in full screen when you click on a link, like
> when you press F11?

As far as I know, that's not possible, but you can use a workaround:
navigation inside an iframe will preserve the fullscreen mode, so you
could just load the whole thing in an iframe.

Demo: http://foo.at/paste/2016/03-emf/

Note that the onclick attribute on the button has also changed.

- stefan

[toc] | [prev] | [next] | [standalone]


#30010

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2016-03-15 22:34 +0100
Message-ID<3781904.PvWYmMTpRm@PointedEars.de>
In reply to#29997
Stefan Weiss wrote:

> On 03/15/2016 02:13, emf wrote:
>> How can I make it stay in full screen when you click on a link, like
>> when you press F11?
> 
> As far as I know, that's not possible, but you can use a workaround:
> navigation inside an iframe will preserve the fullscreen mode, so you
> could just load the whole thing in an iframe.

Interesting idea.  Unfortunately, it works only as long as oneself or the 
authors of the resources navigated to are not running a general frame 
breaker.  So that would need to be adapted to recognize the iframe that
one wants, and there is no remedy for when you navigate to other sites.

I am at a loss to see the logic in the decision-making process of browser 
vendors here.  The fullscreen mode cannot be enabled without user 
interaction either way (“Failed to execute 'requestFullScreen' on 'Element': 
API can only be initiated by a user gesture.”), and if the user is enabling 
fullscreen mode without script involvement using e.g. the F11 key, the 
browser window *stays* in fullscreen mode until the user disables it *even 
when navigating*.  Why can it not just stay in fullscreen mode as well if 
enabling the mode is scripted?  It’s a bug, not a feature.
 
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#30030

Fromemf <emfril@gmail.com>
Date2016-03-17 03:58 -0400
Message-ID<ncdo2p$1upf$1@gioia.aioe.org>
In reply to#29997
On 2016-03-15 05:32, Stefan Weiss wrote:
> On 03/15/2016 02:13, emf wrote:
>> I need a button to turn the browser to full-screen mode to run some eye
>> exercises:
>>
>> http://emf.neocities.org/ix/eyeExercises.html
>>
>> I've found some code on the web that does this for the current page, but
>> returns to browser to normal screen when clicking on a link:
>>
>> function requestFullScreen() {
> [snip]
>> How can I make it stay in full screen when you click on a link, like
>> when you press F11?
>
> As far as I know, that's not possible, but you can use a workaround:
> navigation inside an iframe will preserve the fullscreen mode, so you
> could just load the whole thing in an iframe.
>
> Demo: http://foo.at/paste/2016/03-emf/
>
> Note that the onclick attribute on the button has also changed.
>
> - stefan

Thanks Stefan! Excellent solution. I only vaguely remember reading about 
iframe -- I did not consider it relevant to me at the time -- but now be 
sure I'll educate myself on the issue in the near future.

The only problem now is the addition on top of the alert of the line:

"The page at http://emf.neocities.org says:"

(at least with Firefox). Is there a way to avoid this, or would you 
suggest an alternative?

One possibility now, of course, would be to eliminate the alert 
entirely; a main reason I had included the alerts was that sometimes I 
would click on the link before entering full screen mode. Now this seems 
less of an issue...

Eustace

-- 
Spherical Triangle Calculator
http://emf.neocities.org/tr/spherical.html

[toc] | [prev] | [next] | [standalone]


#30031

Fromemf <emfril@gmail.com>
Date2016-03-17 04:45 -0400
Message-ID<ncdqrk$43c$1@gioia.aioe.org>
In reply to#30030
On 2016-03-17 03:58, emf wrote:
> On 2016-03-15 05:32, Stefan Weiss wrote:
>> On 03/15/2016 02:13, emf wrote:
>>> I need a button to turn the browser to full-screen mode to run some eye
>>> exercises:
>>>
>>> http://emf.neocities.org/ix/eyeExercises.html
>>>
>>> I've found some code on the web that does this for the current page, but
>>> returns to browser to normal screen when clicking on a link:
>>>
>>> function requestFullScreen() {
>> [snip]
>>> How can I make it stay in full screen when you click on a link, like
>>> when you press F11?
>>
>> As far as I know, that's not possible, but you can use a workaround:
>> navigation inside an iframe will preserve the fullscreen mode, so you
>> could just load the whole thing in an iframe.
>>
>> Demo: http://foo.at/paste/2016/03-emf/
>>
>> Note that the onclick attribute on the button has also changed.
>>
>> - stefan
>
> Thanks Stefan! Excellent solution. I only vaguely remember reading about
> iframe -- I did not consider it relevant to me at the time -- but now be
> sure I'll educate myself on the issue in the near future.
>
> The only problem now is the addition on top of the alert of the line:
>
> "The page at http://emf.neocities.org says:"
>
> (at least with Firefox). Is there a way to avoid this, or would you
> suggest an alternative?
>
> One possibility now, of course, would be to eliminate the alert
> entirely; a main reason I had included the alerts was that sometimes I
> would click on the link before entering full screen mode. Now this seems
> less of an issue...
>
> Eustace

Oops! My enthusiasm was premature. The serious drawback of this method 
is that after finishing an exercise, you cannot return to the original 
page to start a second one. Maybe there is no good way to use a button 
after all. Well, I guess I'll just remove it an let the user enter 
full-screen mode manually, after all.

Eustace

-- 
Date Calculator with all-purpose JS code
http://emf.neocities.org/ti/datecalculator.html

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.javascript


csiph-web