<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002302" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002302</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/detecting-carriage-returns-within-string-using-charat-or-indexof#comment-1010237</link>
    <description> &lt;p&gt;You should use the indexOf() function to detect the carriage returns. To detect newlines or carriage returns in the textarea ,use the escape sequences, &amp;quot;\n&amp;quot; and &amp;quot;\r&amp;quot; respectively.&lt;br /&gt;
 Below is an example to detect newlines in a textarea:&lt;/p&gt;
&lt;p&gt; var pos = document.myForm.textArea.indexOf(&amp;quot;\n&amp;quot;);&lt;/p&gt;
&lt;p&gt; Have a try.&lt;br /&gt;
 Later.&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Elara - Webmasters&#039; Guide&lt;br /&gt;
&lt;a href=&quot;http://elara.hypermart.net/&quot; title=&quot;http://elara.hypermart.net/&quot;&gt;http://elara.hypermart.net/&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Jul 1999 01:50:00 +0000</pubDate>
 <dc:creator>elara</dc:creator>
 <guid isPermaLink="false">comment 1010237 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
