Solved

Auto Scrollbars in window.open()

Posted on 2004-05-02
3
7,191 Views
Last Modified: 2006-11-17
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
Comment
Question by:rnemani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
lhankins earned 50 total points
ID: 10974333
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question