<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013014" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013014</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075644</link>
    <description> &lt;p&gt;thanks!&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Dec 2000 02:50:33 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1075644 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075640</link>
    <description> &lt;p&gt;Andrew,&lt;br /&gt;
I gpot this code from The Javascript Source.&lt;br /&gt;
In this case the maxlength is 125.&lt;br /&gt;
You can of course change that to whatever you want,&lt;br /&gt;
just follow the directions:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;!-- TWO STEPS TO INSTALL LIMIT TEXTAREA:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 1.&amp;nbsp; Copy the coding into the HEAD of your HTML document&lt;br /&gt;&amp;nbsp; 2.&amp;nbsp; Add the last code into the BODY of your HTML document&amp;nbsp; --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- STEP ONE: Paste this code into the HEAD of your HTML document&amp;nbsp; --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;HEAD&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;amp;lt;script LANGUAGE=&amp;quot;JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!-- Original:&amp;nbsp; Ronnie T. Moore --&amp;gt;&lt;br /&gt;&amp;lt;!-- Web Site:&amp;nbsp; The JavaScript Source --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Dynamic &amp;#039;fix&amp;#039; by: Nannette Thacker --&amp;gt;&lt;br /&gt;&amp;lt;!-- Web Site: &amp;lt;a href=&amp;quot;http://www.shiningstar.net&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://www.shiningstar.net&amp;lt;/a&amp;gt; --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- This script and many more are available free online at --&amp;gt;&lt;br /&gt;&amp;lt;!-- The JavaScript Source!! &amp;lt;a href=&amp;quot;http://javascript.internet.com&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://javascript.internet.com&amp;lt;/a&amp;gt; --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Begin&lt;br /&gt;function textCounter(field, countfield, maxlimit) {&lt;br /&gt;if (field.value.length &amp;gt; maxlimit) // if too long...trim it!&lt;br /&gt;field.value = field.value.substring(0, maxlimit);&lt;br /&gt;// otherwise, update &amp;#039;characters left&amp;#039; counter&lt;br /&gt;else &lt;br /&gt;countfield.value = maxlimit - field.value.length;&lt;br /&gt;}&lt;br /&gt;// End --&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;br /&gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- STEP TWO: Copy this code into the BODY of your HTML document&amp;nbsp; --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;BODY&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- textCounter() parameters are:&amp;nbsp; text field, the count field, max length --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;center&amp;gt;&lt;br /&gt;&amp;lt;form name=myform action=&amp;quot;YOUR-SCRIPT.CGI&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;font size=&amp;quot;1&amp;quot; face=&amp;quot;arial, helvetica, sans-serif&amp;quot;&amp;gt; ( You may enter up to 125 characters. )&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;textarea name=message wrap=physical cols=28 rows=4 onKeyDown=&amp;quot;textCounter(this.form.message,this.form.remLen,125);&amp;quot; onKeyUp=&amp;quot;textCounter(this.form.message,this.form.remLen,125);&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input readonly type=text name=remLen size=3 maxlength=3 value=&amp;quot;125&amp;quot;&amp;gt; characters left&amp;lt;/font&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/center&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;center&amp;gt;&lt;br /&gt;&amp;lt;font face=&amp;quot;arial, helvetica&amp;quot; SIZE=&amp;quot;-2&amp;quot;&amp;gt;Free JavaScripts provided&amp;lt;br&amp;gt;&lt;br /&gt;by &amp;lt;a href=&amp;quot;http://javascriptsource.com&amp;quot;&amp;gt;The JavaScript Source&amp;lt;/a&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Script Size:&amp;nbsp; 1.37 KB --&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
Hope this helps.&lt;br /&gt;
Ian,&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Dec 2000 22:49:36 +0000</pubDate>
 <dc:creator>ianrules</dc:creator>
 <guid isPermaLink="false">comment 1075640 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>*hand smacking head*</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075589</link>
    <description> &lt;p&gt;doh!  Max is right, I was responding to the  form element.&lt;/p&gt;
&lt;p&gt;Max is also right that the  element has no natural limitation attributes other than size (rows, cols), so if you want to limit characters, either use JavaScript, trim using your form parser in whatever language you script in (ASP, Perl, et cetera), or use an  element instead.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Tue, 12 Dec 2000 17:20:09 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1075589 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075564</link>
    <description> &lt;p&gt;&lt;strong&gt;size=10&lt;/strong&gt; is only for&lt;br /&gt;
&lt;strong&gt;rows=20&lt;/strong&gt; &lt;strong&gt;cols=4&lt;/strong&gt; is for &lt;/p&gt;
&lt;p&gt;as for limiting characters... let me get my book..&lt;br /&gt;
there is no property for that.&lt;/p&gt;
&lt;p&gt;BUT, if your adventurous, you could write a javascript for this using the onKeyPress or onKeyDown.&lt;br /&gt;
count the number of characters&lt;br /&gt;
once over the limit, alert() or something.&lt;/p&gt;
 </description>
     <pubDate>Tue, 12 Dec 2000 04:40:11 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1075564 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You&#039;ve got it inside out!</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075542</link>
    <description> &lt;p&gt;maxlength=&quot;235&quot; or whatever limits the amount of characters that can be entered into the form field.&lt;/p&gt;
&lt;p&gt;In order to limit the size of the form field, you use &lt;strong&gt;size=&quot;10&quot;&lt;/strong&gt; where 10 is whatever size works for your needs.&lt;/p&gt;
&lt;p&gt;Please keep in mind that Netscape will make the field sizes different than IE will, so test in both.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Dec 2000 22:18:41 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1075542 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075534</link>
    <description> &lt;p&gt;The following form tags are for different form elements:&lt;/p&gt;
&lt;p&gt;The  tag creates a scrolling text box. &#039;maxlength&#039; does not work with this tag.&lt;/p&gt;
&lt;p&gt;My question is, how can I limit input into a  field the same way &#039;maxlength&#039; does with a  tag.&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Dec 2000 19:54:24 +0000</pubDate>
 <dc:creator>Andrew</dc:creator>
 <guid isPermaLink="false">comment 1075534 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/limiting-textarea-input#comment-1075530</link>
    <description> &lt;p&gt;um, u&#039;ve confused me.  ur asking how to limit the characters for a form text area.  then u go on to talk about maxlength, hello.  maxlength is it, i&#039;m confused, hehe.&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Dec 2000 19:39:15 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1075530 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
