Disable Scrollbars

How I disable the horizontal and/or vertical scrollbars for my page in my code?
palare98Asked:
Who is Participating?
 
a.marshCommented:
Ah!!

Well in that case you can use "scrollbars=0" in the option string for the window.open call.

Look at:

http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html

for more info.

:o)

Ant
0
 
a.marshCommented:
You will need to load your page in frames:

<html>
<head>
</head>
<frameset rows="100%,*" frameborder="no" border="0">
<frame src="your_current_page.html" scrolling="no">
</frameset>
</html>


:o)

Ant
0
 
a.marshCommented:
You might want to change the opening frameset tag to:

<frameset rows="100%,*" border="0" frameborder="no" framespacing="0">


:o)

Ant
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
palare98Author Commented:
There is no way to do it without using frames?
0
 
Ernest022699Commented:
It is generally not a good idea to disable scrollbars.  You cannot be sure what size screens your users are going to have.  Hiding something off-screen (for example)usually backfires.  What is it you really want to accomplish?
0
 
a.marshCommented:
Frames is the only way of doing what you want (AFAIK).

:o)

Ant
0
 
palare98Author Commented:
I'm trying to make a popup window that has no menus or toolbars and no scrollbars.  It is a fairly small window.  I don't think that I am going to run into people having their screen resolution set too low.
0
 
palare98Author Commented:
Thanks.  That's exactly what I needed.
0
 
a.marshCommented:
Glad to help.

:o)

Ant
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.