javascript - Fullscreen mode on click? Fullscreen API closes after navigation -


i'm making offline website project , i'd whole thing displayed in full screen when opened (or after clicking prompt.) @ moment use fullscreen api works great exits out of fullscreen after user navigates page.

i've seen other people have had this issue , using fullscreen api purpose may not possible because of dom tree being destroyed.

are there other work arounds or options use working? still new @ stuff vague answers can find "ajax loaders" has me lost.

ideally cross browser compatible – i'm handing on files on usb , have no control on browser opened on.

from offical whatwg spec (in section dealing naviagtion):

...if specified browsing context's active document not same document document of specified entry, run these substeps:

  1. fully exit fullscreen...

i may misreading this, think it's spec if dom changes (eg page navigation), fullscreen dismissed.

you may need chromium.

edit:

as ajax loaders, it's referring making page "single page app," load page once, , of functionality driven javascript. frameworks angularjs this, it's large architectural change make site operate way.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -