• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

Disable Scrollbars

How I disable the horizontal and/or vertical scrollbars for my page in my code?
0
palare98
Asked:
palare98
  • 5
  • 3
1 Solution
 
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
 
palare98Author Commented:
There is no way to do it without using frames?
0
Industry Leaders: 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!

 
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
 
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
 
palare98Author Commented:
Thanks.  That's exactly what I needed.
0
 
a.marshCommented:
Glad to help.

:o)

Ant
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now