[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2515
  • Last Modified:

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.
0
brettr
Asked:
brettr
  • 4
  • 3
  • 3
  • +2
4 Solutions
 
BadotzCommented:
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
 
DiscoNovaCommented:
document.getElementsByTagName("body")[0].style.overflow = "hidden";
document.getElementsByTagName("html")[0].style.overflow = "hidden";
0
 
basicinstinctCommented:
<body onload="document.body.style.overflow='hidden';">
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
brunoguimaraesCommented:
<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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now