Wrox Programmer Forums
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 27th, 2004, 01:18 PM
Authorized User
Join Date: Oct 2003
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default scrollbars=?

I am using this little pop-up script which works fine, however, I would like the scrollbars to work automatically.
<a class="orangeblack" a href="#" onClick="window.open('../hp22-questions/whatever.htm','','toolbar=no,width=475,height=290,left=255,top=170,screenX=1,screenY=15,status=no,scrollbars=yes,resize=no');return false">sometext</a>

What I mean is, if the window requires scrollbars, they will automatically be there, if the window does not require them they won't be. This may come up with monitor size and resolution setting differences for different users.

I realize I can write scrollbars=yes, but that places them on the popup window regardless of any conditions. I have tried scrollbars=auto but that didn't work at all.

Any ideas?

Old August 27th, 2004, 03:59 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

According to MSDN, there is no way.

However, you could surround your content in a div that spans the entire popup and has CSS like this:

.yourDiv {overflow:auto}

That should give you your desired effect.



Old August 28th, 2004, 02:31 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

As Snib says I think you can't control it from there, it's controlled by the scroll setting in the body tag of the actual popup page.


Joe (Co-author Beginning XML, 3rd edition)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrollbars on form (Not MDI) feffe Pro VB 6 0 June 12th, 2007 05:33 AM
Ole Control ScrollBars Samikaraeen Pro VB 6 0 September 4th, 2006 05:10 AM
Hiding scrollbars. rupen HTML Code Clinic 1 September 5th, 2005 07:00 AM
Scrollbars on datagrids - c# ntsiro C# 2 July 1st, 2004 03:17 PM
Scrollbars on listbox Ciarano VB How-To 2 March 31st, 2004 05:07 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.