<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beeex.net &#187; JavaScript</title>
	<atom:link href="http://beeex.net/category/web-development/javascript-web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://beeex.net</link>
	<description>Strictly Free Resources for Graphic Designers and Web Developers</description>
	<lastBuildDate>Tue, 16 Dec 2008 18:35:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JavaScript Highlight Text Code: Highlight all Text in a Textarea Box</title>
		<link>http://beeex.net/web-development/javascript-web-development/javascript-highlight-text</link>
		<comments>http://beeex.net/web-development/javascript-web-development/javascript-highlight-text#comments</comments>
		<pubDate>Thu, 10 Jan 2008 19:33:27 +0000</pubDate>
		<dc:creator>beeex happy team</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript code]]></category>
		<category><![CDATA[javascript highlight text]]></category>
		<category><![CDATA[text box]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://beeex.net/uncategorized/highl</guid>
		<description><![CDATA[We all know HTML textarea boxes. They are perfect for feedback or contact forms on your website or blog &#8211; but also for delivering code or text conveniently to the reader. This JavaScript highlight text code especially comes in handy if you are writing HTML, CSS, PHP, or JavaScript tutorials, or other web design tutorials. [...]]]></description>
			<content:encoded><![CDATA[<p>We all know HTML textarea boxes. They are perfect for feedback or contact forms on your website or blog &#8211; but also for delivering code or text conveniently to the reader. This <strong>JavaScript highlight text</strong> code especially comes in handy if you are writing HTML, CSS, PHP, or JavaScript tutorials, or other web design tutorials. It comes in even more handy to the reader if they only click once on the text box, and they have the whole text inside highlighted, ready to copy to their clipboard!</p>
<p>Well, it&#8217;s not hard to do this at all &#8211; all you need is a simple line of JavaScript code.<span id="more-13"></span></p>
<h3>JavaScript Highlight Text</h3>
<p>Simply add this JavaScript snippet to the &#8216;textarea&#8217; tag as an attribute:</p>
<p><code>onclick="javascript:select();"</code></p>
<p>It should look something like this:<br />
&lt;textarea cols=&#8221;50&#8243; rows=&#8221;3&#8243; onclick=&#8221;javascript:select();&#8221;&gt;I love beeex.net!&lt;/textarea&gt;</p>
<p>And this is the result:<br />
<textarea cols="50" rows="4" onclick="javascript:select();">This text should highlight automatically if you click in this text box. Go ahead, try it! You should of course have JavaScript enabled in your browser &#8211; if not, it won&#8217;t work&#8230;</textarea></p>
<p>There you go! We hope this was the JavaScript highlight text code you were looking for <img src='http://beeex.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://beeex.net/web-development/javascript-web-development/javascript-highlight-text/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

