GSto
GSto

Reputation: 42380

Scrollbars not appearing in new window

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

here's the javascript code on the button (from a PHP script), and below, if it's more readable, the HTML that is 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" />

Upvotes: 7

Views: 12611

Answers (2)

Mark Bell
Mark Bell

Reputation: 29785

Off the top of my head, I think it's scrollbars (plural) and not scrollbar.

Also I thought it was scrollbars=yes rather than scrollbars=1, but it's possible either will work.

Upvotes: 11

Marius
Marius

Reputation: 58999

in the window, add this to the stylesheet:

html, body{
  overflow: scroll;
}

Upvotes: 3

Related Questions