One of the other attributes we can specify is whether or not the window opens in fullscreen mode. An example of this would be like so:
window.open('popup_url.html', 'newWindow', 'fullscreen=yes, scrollbars=no');
Simple enough really. We’ve set the URL of the window to be opened, the name of the new window, along with any attributes; in this case to open the window full screen and with no scrollbars.
I know what you’re saying: “But my popup still has scrollbars”
You’re absolutely right. When opening a new window in fullscreen the ‘scrollbars’ parameter is not taken into account and therefore we need to adjust the file contained within our popup (in the above case popup_url.html). Simply add the following to the opening <body> tag:
In doing the above the scrollbars should be now gone (or at least only shown if required).