Skip to content Skip to sidebar Skip to footer

How Do You Prevent A Javascript Redirect From Exiting Fullscreen Mode?

I am trying to redirect to a new url using javascript within an already fullscreen mode but the redirect currenlt exits fullscreen mode which I dont want. Am I using the wrong JS c

Solution 1:

If you change the document address, the browser will always exit full screen mode.

The only thing you could do to get the same visual result is to present the 'new' page inside an iframe that has 100% height and width.

Solution 2:

In fact, I was going about this the wrong way - if you using a Chrome extension and want full screen mode as I was, then you can just use the following:

 chrome.windows.getCurrent(null, function(window) {
    chrome.windows.update(window.id, {state: "fullscreen"});
  })

Post a Comment for "How Do You Prevent A Javascript Redirect From Exiting Fullscreen Mode?"