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 1 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 2 of 2 — ← Prev page 1 [2]


#30965

Frommarkluvji1@gmail.com
Date2016-07-23 04:37 -0700
Message-ID<0c1a6048-1fe9-4396-b61e-b59426dc8cb7@googlegroups.com>
In reply to#29994
On Tuesday, March 15, 2016 at 1:13:43 AM UTC, 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() {
>    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] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

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


csiph-web