Disabling scrollbars in IE & FF

How do I disable scrollbars in IE6+ and FF2 through JavaScript?  This is in the main browser window.  Not a popup window.

For FF, I have tried
window.scrollbars.visible = 'false'
but that didn't work.  IE doesn't seem to support it either.
brettrAsked:
Who is Participating?
 
BadotzConnect With a Mentor Commented:
You can only hide/disable scrollbars using "window.open". So, if you do not want scrollbars in your main window, you will have to open a new window (from your logon page) and make *that* the main window.
0
 
DiscoNovaConnect With a Mentor Commented:
document.getElementsByTagName("body")[0].style.overflow = "hidden";
document.getElementsByTagName("html")[0].style.overflow = "hidden";
0
 
basicinstinctConnect With a Mentor Commented:
<body onload="document.body.style.overflow='hidden';">
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
brunoguimaraesConnect With a Mentor Commented:
<body style="overflow:hidden;">
0
 
BadotzCommented:
No worries - glad to help.
0
 
DiscoNovaCommented:
I usually don't whine, but I'm a bit surprised. The "accepted solution" is the "downright incorrect" one (as can be seen from all the other answers).

But well, the points are of the author's to spend...
0
 
brettrAuthor Commented:
@DiscoNova

You're referring to the first response?  If Badotz will reply and defend his comment correctly, I'll let him keep the points.  Otherwise, I'll contact the admin to get it changed.
0
 
BadotzCommented:
Sorry, gents, nothing to defend. I'm mortally wounded, and will gladly offer up the points.

Moderator, please refund the points kindly given me by brettr.

I'm so used to my wife being right that I was sure something was wrong with my response ;-)
0
 
DiscoNovaCommented:
Personally, I'm not interested in the points. The only thing actually bothering me is that when the next person finds this question and sees that the accepted solution basically boils down to "what you asked can't be done the way you want", they might not look any further for the correct solution.
0
 
basicinstinctCommented:
to split hairs - bruno's solution doesn't answer the question either, you asked for it to be done thru javascript
0
 
brunoguimaraesCommented:
Sorry, I didn't realize he wanted it in JavaScript. I saw the question in the CSS area, so I thinked of CSS first!

Feel free to refund the points!
0
 
brettrAuthor Commented:
I'm going to let points stand guys.  What I was trying to do with Badotz was award on effort and not solution.  However, experts-exchange.com doesn't allow you to do that.  Unfortunately for an "Accepted Multiple Solutions", it doesn't show the points awarded, which could display relevance.  I always appreciate the people that at least take the time out to pipe in with something remotely close to the topic.  Maybe they get it wrong on one of my questions but got points anyway.  So when they see my next question, they know I won't blow them off.  Hopefully they will try to give a solution and possibly get more points, depending on how close they are.

The ideal thing is if points could be awarded and solutions tagged, irrelvant of points awarded.  That way, people that are making an effort but didn't give the best solution aren't left out.
0
 
brettrAuthor Commented:
I guess appending something such as:

*** SOLUTION - ID:20052817Author:DiscoNova *** (points awarded to others for effort)

or

*** ASSISTED SOLUTION - ID:20052817Author:DiscoNova *** (points awarded to others for effort)

is a fix until something better comes along.
0
 
BadotzCommented:
Your argument is based on an incorrect assumption - namely that points, grades and participation are the end result of a question. You, as an individual, may see it thus, but take a step out of the forest and see the 52" picture ;-)

The desired outcome of a question is a solution, one that increases the "knowledge" of EE as a whole. This increase in answers to tough questions beefs up the cake that is EE. Poinks and grades are icing on that cake.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.