?
Solved

Auto Scrollbars in window.open()

Posted on 2004-05-02
3
Medium Priority
?
7,330 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 200 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

Technology Partners: 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!

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…

649 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