Hi Is it possible to disable browser scroll bar through java script...? If yes how?
Help me if anybody knows it... Thanks in advance..
2. Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.
Click Options, and then click the Advanced category. Under Display options for this workbook, clear or select the Show horizontal scroll bar check box and Show vertical scroll bar check box to hide or display the scroll bars.
The most straightforward way for disabling scrolling on websites is to add overflow: hidden on the <body> tag.
CSS
body
{
overflow: hidden;
}
javascript
document.body.style.overflow = "hidden";
jQuery
$("body").css('overflow', 'hidden');
Use this CSS
body {
overflow:hidden;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With