<?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>Viloria.net &#187; html</title>
	<atom:link href="http://www.viloria.net/archives/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viloria.net</link>
	<description>Relaxed Writing</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:08:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>HTML Forms and Instant Select</title>
		<link>http://www.viloria.net/archives/html-forms-and-instant-select/</link>
		<comments>http://www.viloria.net/archives/html-forms-and-instant-select/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 01:21:46 +0000</pubDate>
		<dc:creator>Viloria.net</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.viloria.net/archives/html-forms-and-instant-select/</guid>
		<description><![CDATA[If you&#8217;re wondering how people create windows which contain text that gets automatically selected or highlighted when someone clicks inside the window, here&#8217;s the HTML code: &#60;textarea name="nameofyourtextarea" rows="4" cols="100" readonly="readonly" id="idofyourtextarea" class="cssforyourtextarea" onfocus="this.select()" style="height:150px;width:300px;"&#62; Your long text (contents of your textarea box)... &#60;/textarea&#62; And there you go&#8230; The key there is the part that [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re wondering how people create windows which contain text that gets automatically selected or highlighted when someone clicks inside the window, here&#8217;s the HTML code:</p>
<p><span id="more-194"></span></p>
<pre id="line608">&lt;<span class="start-tag">textarea</span><span class="attribute-name"> name</span>=<span class="attribute-value">"nameofyourtextarea" </span><span class="attribute-name">rows</span>=<span class="attribute-value">"4" </span><span class="attribute-name">cols</span>=<span class="attribute-value">"100" </span><span class="attribute-name"></span></pre>
<pre id="line608"><span class="attribute-name">readonly</span>=<span class="attribute-value">"readonly" </span><span class="attribute-name">id</span>=<span class="attribute-value">"idofyourtextarea" </span><span class="attribute-name"></span></pre>
<pre id="line608"><span class="attribute-name">class</span>=<span class="attribute-value">"cssforyourtextarea" </span><span class="attribute-name">onfocus</span>=<span class="attribute-value">"this.select()" </span><span class="attribute-name"></span></pre>
<pre id="line608"><span class="attribute-name">style</span>=<span class="attribute-value">"height:150px;width:300px;"</span>&gt;</pre>
<pre id="line608">Your long text (contents of your textarea box)...</pre>
<pre id="line608">&lt;/textarea&gt;</pre>
<p>And there you go&#8230;</p>
<p>The key there is the part that says <strong>onfocus=&#8221;this.select()&#8221;</strong></p>
<p>Have fun!</p>
<p><textarea name="nameofyourtextarea" rows="4" cols="100" readonly="readonly" id="idofyourtextarea" class="cssforyourtextarea" onfocus="this.select()" style="height: 90px; width: 300px">Click anywhere inside this box and see if the entire contents of this text area box will get automatically highlighted. Perfect for easy copy/paste operations, right?</textarea></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viloria.net/archives/html-forms-and-instant-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

