Solved

Disable Scrollbars

Posted on 2001-08-20
9
399 Views
Last Modified: 2009-07-29
How I disable the horizontal and/or vertical scrollbars for my page in my code?
0
Comment
Question by:palare98
  • 5
  • 3
9 Comments
 
LVL 15

Expert Comment

by:a.marsh
ID: 6407923
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
 
LVL 15

Expert Comment

by:a.marsh
ID: 6407927
You might want to change the opening frameset tag to:

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


:o)

Ant
0
 

Author Comment

by:palare98
ID: 6407978
There is no way to do it without using frames?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 1

Expert Comment

by:Ernest022699
ID: 6408342
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
 
LVL 15

Expert Comment

by:a.marsh
ID: 6408771
Frames is the only way of doing what you want (AFAIK).

:o)

Ant
0
 

Author Comment

by:palare98
ID: 6410598
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
 
LVL 15

Accepted Solution

by:
a.marsh earned 100 total points
ID: 6410873
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
 

Author Comment

by:palare98
ID: 6411468
Thanks.  That's exactly what I needed.
0
 
LVL 15

Expert Comment

by:a.marsh
ID: 6412349
Glad to help.

:o)

Ant
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

860 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