Solved

Auto Scrollbars in window.open()

Posted on 2004-05-02
3
7,151 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…

777 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