<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for Username</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Wed, 15 Oct 2008 21:51:23 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Correct Login Form AutoFocus</title>
	<link>http://www.bytemycode.com/snippets/snippet/204/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/204/comments/</comments>
	<pubDate>Mon, 01 May 2006 08:26:05 +0000</pubDate>
	<dc:creator>mattrmiller</dc:creator>
	<category>Focus, Form, JavaScript, Password, Username</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/204/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. May. 1st, 2006  8:26 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/204/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_coder.gif" align="middle" class="icon" alt="Coder" /> <a href="http://www.bytemycode.com/members/member/mattrmiller/" title="Coder">mattrmiller</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Focus">Focus</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Form">Form</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Password">Password</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Username">Username</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/204/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>This is a correct way to do login form auto-focus, checking to see if either username or password have focus already. This prevents someone from typing a username hitting TAB, then having JavaScript chime in, resetting focus to Username while user is typing in their password. In this case, the password is appended to the username which is in plaintext.</p>
		]]>
	</description>
</item>
	</channel>
</rss>