
Removing Scrollbar from an existing window
This works great! I really need to read my DHTML book now.
Thanks again!
Quote:
> Hello All,
> I was wondering, is there a way to remove the scrollbar (in IE) from
> existing window? I've heard that it is possible to do this with JS in
> Netscape 4.
> The page I'm loading has no need for a scrollbar (it fits in multiple
> resolutions) and removing the bar allows for the page to fit
> completely horizontally.
> Any suggestions in VBS or JS are welcome. Otherwise I can just close
> the existing window and reload it from another window.
<html>
<head>
<script language="vbscript">
sub doToggle()
if lcase(document.body.scroll) = "yes" then
document.body.scroll = "no"
else
document.body.scroll = "yes"
end if
end sub
</script>
</head>
<body scroll="no">
<INPUT TYPE="button" value="Toggle ScrollBars" onclick="doToggle">
</body>
</html>
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US