Javascript Help

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
I am working with dhtml Popups on my site and i have been trying to figure out how to disable the scrollbar using javascript. I am able to do it properly in all browsers except IE the code im using is below. If anyone can help with this it would be greatly appreciated.


Code:
  document.body.style.overflow="hidden";

If there is another line of code that would do the same please let me know.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
It's probably the <html> element. IE does weird stuff with it. Try adding:
Code:
document.body.parentNode.style.overflow='hidden';
 
Top