473,804 Members | 3,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

textarea scrollbars

Max
How can I disable scrollbars in a textarea. They seem to be enabled by
default.

thanks

Max
Jul 20 '05 #1
4 25603
"Max" <ma*@gallonline .com> wrote:
How can I disable scrollbars in a textarea. They seem to be enabled by
default.


overflow: hidden;

But what happens when the user enters more text than will fit in the
box? Although possible (at least in some browsers) it is now more
difficult for them to move around within their entry to review or edit
it.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #2
On Thu, 26 Feb 2004 19:31:46 -0000, Max wrote:
How can I disable scrollbars in a textarea. They seem to be enabled by
default.


Stand beside the user with a gun and say
"Stop typing, or I shoot"?

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Jul 20 '05 #3
"Max" <ma*@gallonline .com> wrote:
How can I disable scrollbars in a textarea. They seem to be enabled by
default.


With the 'overflow' property, set to 'hidden' or 'auto'?

Value: visible | hidden | scroll | auto | inherit
Applies to: block-level and replaced elements
Inherited: no

Why would you want to do such a thing?
Jul 20 '05 #4
"Karl Smith" <go************ @kjsmith.com> wrote in message
news:3d******** *************** *@posting.googl e.com...
"Max" <ma*@gallonline .com> wrote:
How can I disable scrollbars in a textarea. They seem to be enabled by default.
With the 'overflow' property, set to 'hidden' or 'auto'?

Value: visible | hidden | scroll | auto | inherit
Applies to: block-level and replaced elements
Inherited: no

Why would you want to do such a thing?


He explained in comp.lang.javas cript:
http://groups.google.co.uk/groups?se...%40newsfe1-win

Max <Byp%b.563$jg7. 477@newsfe1-win> wrote: I have used a textarea to display typewriter effect text. The
scrollbars are displayed by default.
What is the code to disable the scrollbars in a textarea
form field? < scrolling="no"> does not seem to work.


If he really *has* to implement such a thing he'd be better off
implementing it as follows:

Markup:
<p id="typewriter" >This is the text content to type out</p>

Then using a self-contained external script with an onload event
defined, pick up the paragraph element via the id, remove the text, then
'type' it out back into the element using CSS to style. This way it
remains accessible and semantic and only annoys those that have
javascript enabled :o)
--
Andrew Urquhart
Reply: http://www.andrewu.co.uk/about/conta...ct=Re%3A+ciwas
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2370
by: Merlin_1102 | last post by:
Hey im kinda a newbie to java so i dont know much any help would be appreciated. Thanx in advance to anyone who does help or takes the time to read this. Hey i have placed a text area in a panel which uses a borderlayout. the code goes relatively like this // Create a new JPanel to sit in the top right corner this.topRight = new JPanel(); this.topRight.setLayout(new BorderLayout());
2
4131
by: Mike Labman | last post by:
This is more of an HTML/CSS question, but I figure someone in here might know. I'm using in the stylesheet: BORDER-RIGHT: none; BORDER-TOP: none; BORDER-LEFT: none; BORDER-BOTTOM: none; OVERFLOW: hidden;
4
10222
by: David | last post by:
It's sad to say, but when using the AOL web site, like to send an email, they have a nifty capability such that when a window is resized, the textarea where the message is input expands not only horizontally, but also vertically, to fill the space. I took a look at their javascripts, but they are quite complex and convoluted since they make use of many of their own functions designed to work with their web site. Does anybody have a...
2
1587
by: Max | last post by:
I have used a textarea to display typewriter effect text. The scrollbars are displayed by default. What is the code to disable the scrollbars in a textarea form field? < scrolling="no"> does not seem to work. thanks Max
2
104926
by: musicmouse | last post by:
Happy new year to you all, I have a problem with the css settings for the horizontal scrollbar of a textarea. When I look at my textarea's in Internet Explorer (I use 5.5) I see only a vertical scrollbar when the area contains a too long text. IE wil just break off the text at the limit if a single word is too long and put the next character on the next line. For me this is the desired bahaviour (those horizontal scrollbars take too...
2
1797
by: stefanomnn | last post by:
hello, i have a tetxtarea, with the style overflow:hidden, and a long text. because of the overflow, user does not see the whole text but a part. is there, in an IE browser, a mode to recovery the effective text than user see? Thanks
6
31457
by: Tony | last post by:
The w3schools HTML tag reference for <textarea> http://www.w3schools.com/tags/tag_textarea.asp says that the attributes 'cols' and 'rows' are REQUIRED attributes for the textarea tag. Looking at the HTML 4.01 specification I see this, too. What I'm wondering is - 'cols' & 'rows' determines the height & width of a textarea. So shouldn't that be something that is handled by CSS instead? What would be the practical consequence of leaving...
0
2877
by: korggrok | last post by:
I have a dialog window that pops up from the main app browser window. The window contains a form (name="savechanges") that includes an input (name="sql") that is a textarea input. The dialog window includes a button: <INPUT TYPE=SUBMIT VALUE="Test SQL" OnClick="javascript:openWin3('/cgi- bin/eisweb.exe? uni=67BD&action=TestSQL&viewname=EISWEB_TESTSQL.SQL&forceregen=true&sql='+savechanges.sql.value);return false;">
1
2795
by: Nick | last post by:
Hi, I have created a html page from Java and I have added a .js file which can resize a TextArea inside the html on mousedown event. <script src="C:\temp\resize.js"</script> <table<tr><td onmousedown="javascript:resize('trinput',event)"> <TEXTAREA NAME="input" id="trinput" COLS=40 ROWS=60> my textarea here </TEXTAREA>
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.