Hide the scrollbars

Use this code to show/hide the scrollbars of the browser window.
HTML • JavaScript


<html>
<script language=javascript>

function hidden()
{document.body.style.overflow='hidden';}

function unhidden()
{document.body.style.overflow='';}

</script>
<body>
<form>
<input type="button" value="hidden scrollbars" onclick="hidden()"><br>
<input type="button" value="unhidden scrollbars" onclick="unhidden()">
</form>
</body>
</html>

Posted by fbrefere001 on Thursday August 8, 2002