How to remove scrollbar(s) without use of frames.

S

Sujan

Hello all,

Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).

Thanks in adv,
Sujan
 
V

VK

IE and NN 8 only (I guess, at least not on FF):

window.document.body.scroll = 'no'; //hide
window.document.body.scroll = 'yes'; // show
window.document.body.scroll = 'auto'; // show only if needed
 
B

BootNic

Sujan said:
Hello all,

Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).

Thanks in adv,
Sujan

Maybe css will work.

<body style="overflow:auto;">


--
BootNic Saturday, July 02, 2005 12:13 PM

Imagination was given to man to compensate him for what he isn't. A sense of humor was provided to
console him for what he is.
*Horace Walpole English novelist*
 
T

Thomas 'PointedEars' Lahn

BootNic said:
Maybe css will work.

<body style="overflow:auto;">

`overflow:auto' makes the UA to display scrollbars only if required which
is probably the default behavior, i.e. scrollbars will be displayed. One
*could* use `overflow:hidden' but I would not recommend that; rather check
the layout for errors and format the margins of the document body
accordingly.


PointedEars
 
E

Evertjan.

Thomas 'PointedEars' Lahn wrote on 16 jul 2005 in comp.lang.javascript:
`overflow:auto' makes the UA to display scrollbars only if required
which is probably the default behavior, i.e. scrollbars will be
displayed. One *could* use `overflow:hidden' but I would not
recommend that; rather check the layout for errors and format the
margins of the document body accordingly.

Type this in the address bar:

javascript:document.body.style.overflow='hidden';void 0;

IE tested
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top