Solved

Auto Scrollbars in window.open()

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now