Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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" />
like image 901
GSto Avatar asked Sep 28 '09 15:09

GSto


People also ask

Why is my scroll bar not showing?

Click Start > Settings. Under Windows Settings, scroll down, and then click Ease of Access > Display. Scroll down, and then set Automatically hide scroll bars in Windows to Off.

How do I force always show scrollbars?

To show the scrollbars always on the webpage, use overflow: scroll Property. It will add both horizontal and vertical scrollbars to the webpage. To add only horizontal scrollbar use overflow-x: scroll property and for vertical scrollbar use overflow-y: scroll property.

How do I add the scroll bar to pop up?

To implement scrolling in the Popup component, do the following: Wrap the content in the ScrollView component and place it in the Popup container. Set the height and width of the ScrollView to 100% of the popup content area.

Why is my scroll bar not showing in Chrome?

To fix the issue: Open a Chrome window. In the address bar, enter "chrome://flags," and navigate to that page. Scroll down to Overlay Scrollbars, and set the field to "Disabled."


2 Answers

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.

like image 113
Mark Bell Avatar answered Oct 06 '22 01:10

Mark Bell


in the window, add this to the stylesheet:

html, body{
  overflow: scroll;
}
like image 44
Marius Avatar answered Oct 06 '22 00:10

Marius