javascript – How to open a popup with full screen size on extended monitors?

Question:

I have a scenario where two TVs extended vertically are used to display a list of orders. I'm trying to open a popup that fits the full size of the screen of both TVs, but even setting the height as 3840px the popup only opens filling the first screen. Any suggestion?

function popitup(a) {
window.open(a,'open_window','height=3840, left=1, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, titlebar=no, toolbar=no, top=1, width=1080,fullscreen=yes');}

The application itself uses java with spring mvc and thymeleaf on the front end. The above snippet is javascript to open the popup.

Answer:

You can try using the functions:

  • screen.availWidth
  • screen.availHeight
  • screen.width
  • screen.height

Example:

function popitup(a) {
window.open(a,'open_window','height=screen.height, left=1, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, titlebar=no, toolbar=no, top=1, width=screen.width,fullscreen=yes');}
Scroll to Top
AllEscort