Hiding Scrollbars in IE7 fullscreen/kiosk mode

November 10, 2008

I have the following code that I’ve been using for quite some time to open a web browser into fullscreen “kiosk” mode when the application called for it:

function goFullSize()
{
window.open(targetURL, ”, ‘fullscreen=yes, scrollbars=auto’);
daddy = window.self;
daddy.opener = window.self;
daddy.close();
}

So anyway, a recent project required a full screen mode, and it was then that I discovered that in IE7 always liked to display a disabled-appearing side scrollbar.  I tried to programatically fix it, but the browser seemed to ignore any explicit settings you pass it (scrollbars=”no”, etc.)  Anyway, I finally found a workaround in CSS (add the following to your stylesheet:)

html  {overflow:auto}