Scroll bars do not appear in a new window

I'm trying to open a new window, and for some reason, the scrollbars will not display in Firefox or IE, but they work fine in Chrome and Opera.

here's the javascript code on the button (from a PHP script), and below, if it is more readable, the HTML output:

window.open('".BASE_URL."utils/viewProfile.php?key=".$key."',null,'width=1280,height=1024,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=1,resizable=1')"

<input class="input-button btn_generic_nav6up" type="button" onclick="window.open('https://domain.com/utils/viewProfile.php?key=8UjKKydCyTx1V7E2A0xklA%3D%3D',null,'width=1280,height=1024,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=1,resizable=1')" value="view profile" />
+3
source share
2 answers

On top of my head, I think it is scrollbars(plural) and not scrollbar.

I also thought that it was scrollbars=yes, and not scrollbars=1, but it is possible or will work.

+6
source

in the window, add this to the stylesheet:

html, body{
  overflow: scroll;
}
+2
source

Source: https://habr.com/ru/post/1718719/


All Articles