Javascript: Disable the Scrollbars

Use the following code:

document.documentElement.style.overflow = 'hidden'; // firefox, chrome
document.body.scroll = "no"; // ie only

Leave a Reply