Note that there are some explanatory texts on larger screens.

plurals
  1. POMake google-chrome browser go fullscreen when page loads
    primarykey
    data
    text
    <p><strong>Please consider answering this question here even if you mark it as a duplicate</strong> because for some reason I just can't get it to work with other solutions and though I tried to ask for help no one replied...</p> <p>What I really want is to <code>$(document).ready(function(){browser goes fullscreen})</code> but unfortunately it isn't working and I am desperate through trying to find a solution online because nothing appears to work! I have the js file well inserted in my main php file (console.log works) but it just won't load fullscreen no matter the lines of code...</p> <p>If you can provide a solution to work in all browsers and <strong>with keys activated</strong> I would be really, really thankful. Otherwise I'll contempt myself with the google chrome answer. Thank you so much.</p> <p>EDIT1:</p> <p>I tried this</p> <pre><code>// mozilla proposal element.requestFullScreen(); document.cancelFullScreen(); // Webkit (works in Safari and Chrome Canary) element.webkitRequestFullScreen(); document.webkitCancelFullScreen(); // Firefox (works in nightly) element.mozRequestFullScreen(); document.mozCancelFullScreen(); // W3C Proposal element.requestFullscreen(); document.exitFullscreen(); </code></pre> <p>The following one only under user interaction:</p> <pre><code>addEventListener("click", function() { var el = document.documentElement , rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen ; rfs.call(el); }); </code></pre> <p>amongst others I can't find now and basically I have combined them with <code>$(document).ready(function(){---});</code> but nothing happened.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload