• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7378
  • Last Modified:

Auto Scrollbars in window.open()

I am trying to open a popup window, i want to set Scrollbars=auto , like this
window.open("design.jsp","showDesign","status=no,height=409,width=615,dependent=yes,scrollbars=auto");
but, the above line is not working, if i give scrollbars=yes , it is working, how can i make "auto" ?
0
rnemani
Asked:
rnemani
1 Solution
 
lhankinsCommented:
I think that option refers to whether or not the browser window in question <can> have scrollbars.   It doesn't neccessarily mean it will have them (that is a function of the HTML document it contains).

If you create a new window with scrollbars=yes, then when it displays an HTML document which is larger than the viewport, it will add scrollbars (if the HTML document is smaller than the viewport, there will be no scrollbars).

Conversely - if you say scrollbars=no, then even if you have a document which is larger than the viewport, you'll still get no scrollbars...

This option is not to be confused with the CSS property overflow (which you can set to auto if you want scrollbars).

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now