<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>>Anyway, document.body is a much quicker way to express
it.<BR>></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Are there any browsers other than IE which dont use
document.body?</DIV>
<DIV><BR>>Secondly, the element which IE makes the visual root and thus gives
<BR>>scrollbars changes. In IE5 and Quirks mode it's <body>, in IE6
Standards <BR>>mode it's <html>. (The standards actually say it
shouldn't be either of <BR>>them, but that's another story.) So to do it in
either mode:<BR>><BR>> if (ie_win) { // sniffed using whatever
is your favourite method<BR>> var
r;<BR>> if
(document.compatMode=='CSS1Compat')</FONT></DIV>
<DIV><FONT face=Arial>> r=
document.documentElement;<BR>>
else<BR>> r=
document.body;<BR>> r.style.overflow=
'auto';<BR>> }</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>ok, i modified the script to make it
work. </FONT></FONT><FONT face=Arial><FONT size=2>In the body tag of the page,
i've defined style="overflow:hidden;", so surely i dont need to check for
document.documentElement (if it's defined in the html file in the body tag, it
wouldn't shift anywhere else, would it?). </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial><FONT
size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>But this doesn't actually make the browser
display (or hide) the scrollbars. I've checked, and it DOES change the
document.body.style.overflow value of the DOM, but it i think the page
needs to be refreshed for this to take effect, is there a way to refresh the
page, without the user having to actually reload all the
graphics?</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>I want to be able to do this because i dont
want the user to be able to scroll down the page until an event
occurs.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Thanks,</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Dash</FONT></DIV></FONT></BODY></HTML>