PDA

View Full Version : How to...


ecnarongi
05-15-2003, 05:36 PM
control the window.open attributes? well I know window.open('someURL','','width=00,height=00,scrollbars=yes,etc.') but I want to on have one scrollbar. I don't want the horizontal scrollbar, I only want the vertical one. Is it possible to specify which one to show and which one not to show? All help is appreciated, thanks.

Frank
05-15-2003, 07:18 PM
I don't believe so.

What you can do is when you open the window, set the windows width and height making sure that your htm is not wider than the width you set.

For example
window.open("sample.htm", "_blank", "width=750,height=500,top=10,left=10,scrollbars=YES,menubar=NO,toolbar=NO");

If the sample.htm is less than the width set(750) then you won't see the bottom scroll bar.

Spookster
05-15-2003, 08:01 PM
Originally posted by ecnarongi
control the window.open attributes? well I know window.open('someURL','','width=00,height=00,scrollbars=yes,etc.') but I want to on have one scrollbar. I don't want the horizontal scrollbar, I only want the vertical one. Is it possible to specify which one to show and which one not to show? All help is appreciated, thanks.

Read the posting guidelines part 2 before creating any more threads:

http://www.codingforums.com/postguide.htm

ecnarongi
05-16-2003, 02:52 PM
Originally posted by Spookster
Read the posting guidelines part 2 before creating any more threads:

http://www.codingforums.com/postguide.htm

:confused:

Danne
05-16-2003, 03:36 PM
Originally posted by ecnarongi
:confused:
I believe Spookster meant that your subject (How to...) was not very descriptive...

Here is another link about that. (http://www.codingforums.com/showthread.php?s=&threadid=2090)


Regarding your question:

I don't think you can control it when opening a new window.
You can do an ugly thing like putting everything in div on the page you open, and set the
style="overflow-x:hidden;overflow-y:scroll" on the div tag...

The nicer way though, is to do what Frank suggested..