jvb a écrit :[color=blue]
> I hope this is the correct place to ask this question. If not, would some
> kind person tell me where I should? In IE, one can use the javascript code,
> "document.body.scroll='yes/no'" to dynamically control the visibility of a
> window's scrollbars.[/color]
Yes but is that a good idea? If scrollbar(s) appear, it is because there
is content which is not in the viewport but which can nevertheless be
reached. So, how would removing scrollbar(s) promote accessibility to
content? Removing scrollbars in such circumstances would go against the
objective interests of both the web author and user/visitor.
Is there an equivalent for W3C browsers (in my case[color=blue]
> firefox 1.0.6) that does not require messing with browser security?[/color]
There is a simple way to remove scrollbar(s) in all/any circumstances.
Just make sure that the document box will fit into the window viewport.
If you can not make sure of this, then you have to trust the normal,
standard browser functionality to allow the user to reach/access clipped
content.
"When the viewport is smaller than the document's initial containing
block, the user agent should offer a scrolling mechanism."
http://www.w3.org/TR/CSS2/visuren.html#q2 http://www.w3.org/TR/CSS21/visuren.html#q2
Why would you want to counter this standard, normal mechanism in browsers?
Gérard
--
remove blah to email me