Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript

 
kamalkumar telikicherla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to disable the horizontal scrollbar on my textarea.
the code must work on every browser like IE, netscape,mozilla......
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has nothing to do with JavaScript at all.

Only choice you have is css with scroll:auto making sure to set the word-break and the width of the area.

The scroll-x and scroll-y are IE only at the moment.

Eric
 
kamalkumar telikicherla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not getting what i want.
i want to disable the horizontal bar.
but overflow-x:hidden is working in IE .
but i want the code to work in mozilla.
hat i have to do.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said before: Mozilla and such do not support the scroll-x, looks like you are out of luck.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic