Entry
How can I avoid scrollbars in a window even when the document is wider/higher than the window?
How can I replace the scrollbar with a 'virtual' scrollbar?
Dec 3rd, 2000 07:40
Martin Honnen, Mike Langeveld,
With IE4+ you can set
<BODY SCROLL="no">
in the document you load,
with NN4 you are able to exploit the window.open method to achieve your
aim by calling open on the window itself with the desired feature
string:
<HTML>
<HEAD>
<SCRIPT>
if (document.layers)
open('', '_self',
'scrollbars=0,' +
'location=' + (window.locationbar.visible ? 1 : 0) + ',' +
'status=' + (window.statusbar.visible ? 1 : 0) + ',' +
'menubar=' + (window.menubar.visible ? 1 : 0) + ',' +
'toolbar=' + (window.toolbar.visible ? 1 : 0));
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
<IMG SRC="kiboInside.gif" WIDTH="1050" HEIGHT="800">
</BODY>
</HTML>
For NN6 I tried
<STYLE>
BODY { overflow: hidden; }
</STYLE>
but it didn't work out as desired. Only the horizontal scrollbar
vanished.