<?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>W3 Updates, HTML, XHTML, CSS, JavaScript, AJAX, XML, PHP, Ruby, PHP Frameworks</title>
	<atom:link href="http://www.w3updates.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.w3updates.com</link>
	<description>Free W3 Articles, HTML Tutorials, XHTML Tutorials, Ajax Tutorials, Javascripts Tutorials, PHP, SQL, MySql, MSSQL, PHP Tutorial, CSS, JS Tutorials, Learn HMTL, Ruby on Rails, PHP Frameworks Tutorials, ASP.NET, W3 School, W3 Validator, Flash Tutorials, SEO Tips, Web Building, Server Scripting</description>
	<lastBuildDate>Thu, 12 Jan 2012 11:56:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>HTML DOM Document Object</title>
		<link>http://www.w3updates.com/browser-scripting/html-dom/html-dom-document-object/</link>
		<comments>http://www.w3updates.com/browser-scripting/html-dom/html-dom-document-object/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:56:55 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML DOM]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1554</guid>
		<description><![CDATA[Document Object Each HTML document loaded into a browser window becomes a Document object. The Document object provides access to all HTML elements in a page, from within a script. Tip: The Document object is also part of the Window object, and can be accessed through the window.document property. Document Object Collections W3C: W3C Standard. Collection Description [...]]]></description>
			<content:encoded><![CDATA[<h2>Document Object</h2>
<p>Each HTML document loaded into a browser window becomes a Document object.</p>
<p>The Document object provides access to all HTML elements in a page, from within a script.</p>
<p><strong>Tip:</strong> The Document object is also part of the Window object, and can be accessed through the window.document property.</p>
<hr />
<h2>Document Object Collections</h2>
<p><strong>W3C:</strong> W3C Standard.</p>
<table>
<tbody>
<tr>
<th align="left" width="28%">Collection</th>
<th align="left" width="66%">Description</th>
<th align="left" width="6%">W3C</th>
</tr>
<tr>
<td>anchors[]</td>
<td>Returns an array of all the anchors in the document</td>
<td>Yes</td>
</tr>
<tr>
<td>forms[]</td>
<td>Returns an array of all the forms in the document</td>
<td>Yes</td>
</tr>
<tr>
<td>images[]</td>
<td>Returns an array of all the images in the document</td>
<td>Yes</td>
</tr>
<tr>
<td>links[]</td>
<td>Returns an array of all the links in the document</td>
<td>Yes</td>
</tr>
</tbody>
</table>
<h2>Document Object Properties</h2>
<table>
<tbody>
<tr>
<th align="left" width="28%">Property</th>
<th align="left" width="66%">Description</th>
<th align="left" width="6%">W3C</th>
</tr>
<tr>
<td>cookie</td>
<td>Returns all name/value pairs of cookies in the document</td>
<td>Yes</td>
</tr>
<tr>
<td>documentMode</td>
<td>Returns the mode used by the browser to render the document</td>
<td>No</td>
</tr>
<tr>
<td>domain</td>
<td>Returns the domain name of the server that loaded the document</td>
<td>Yes</td>
</tr>
<tr>
<td>lastModified</td>
<td>Returns the date and time the document was last modified</td>
<td>No</td>
</tr>
<tr>
<td>readyState</td>
<td>Returns the (loading) status of the document</td>
<td>No</td>
</tr>
<tr>
<td>referrer</td>
<td>Returns the URL of the document that loaded the current document</td>
<td>Yes</td>
</tr>
<tr>
<td>title</td>
<td>Sets or returns the title of the document</td>
<td>Yes</td>
</tr>
<tr>
<td>URL</td>
<td>Returns the full URL of the document</td>
<td>Yes</td>
</tr>
</tbody>
</table>
<h2>Document Object Methods</h2>
<table>
<tbody>
<tr>
<th align="left" width="28%">Method</th>
<th align="left" width="66%">Description</th>
<th align="left" width="6%">W3C</th>
</tr>
<tr>
<td>close()</td>
<td>Closes the output stream previously opened with document.open()</td>
<td>Yes</td>
</tr>
<tr>
<td>getElementById()</td>
<td>Accesses the first element with the specified id</td>
<td>Yes</td>
</tr>
<tr>
<td>getElementsByName()</td>
<td>Accesses all elements with a specified name</td>
<td>Yes</td>
</tr>
<tr>
<td>getElementsByTagName()</td>
<td>Accesses all elements with a specified tagname</td>
<td>Yes</td>
</tr>
<tr>
<td>open()</td>
<td>Opens an output stream to collect the output from document.write() or document.writeln()</td>
<td>Yes</td>
</tr>
<tr>
<td>write()</td>
<td>Writes HTML expressions or JavaScript code to a document</td>
<td>Yes</td>
</tr>
<tr>
<td>writeln()</td>
<td>Same as write(), but adds a newline character after each statement</td>
<td>Yes</p>
<p>&nbsp;</td>
</tr>
</tbody>
</table>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object&amp;bodytext=Document%20Object%0D%0AEach%20HTML%20document%20loaded%20into%20a%20browser%20window%20becomes%20a%20Document%20object.%0D%0A%0D%0AThe%20Document%20object%20provides%20access%20to%20all%20HTML%20elements%20in%20a%20page%2C%20from%20within%20a%20script.%0D%0A%0D%0ATip%3A%C2%A0The%20Document%20object%20is%20also%20part%20of%20the%20Window%20object%2C%20a" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object&amp;notes=Document%20Object%0D%0AEach%20HTML%20document%20loaded%20into%20a%20browser%20window%20becomes%20a%20Document%20object.%0D%0A%0D%0AThe%20Document%20object%20provides%20access%20to%20all%20HTML%20elements%20in%20a%20page%2C%20from%20within%20a%20script.%0D%0A%0D%0ATip%3A%C2%A0The%20Document%20object%20is%20also%20part%20of%20the%20Window%20object%2C%20a" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;t=HTML%20DOM%20Document%20Object" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object&amp;annotation=Document%20Object%0D%0AEach%20HTML%20document%20loaded%20into%20a%20browser%20window%20becomes%20a%20Document%20object.%0D%0A%0D%0AThe%20Document%20object%20provides%20access%20to%20all%20HTML%20elements%20in%20a%20page%2C%20from%20within%20a%20script.%0D%0A%0D%0ATip%3A%C2%A0The%20Document%20object%20is%20also%20part%20of%20the%20Window%20object%2C%20a" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML%20DOM%20Document%20Object&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;headline=HTML%20DOM%20Document%20Object&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Document%20Object%0D%0AEach%20HTML%20document%20loaded%20into%20a%20browser%20window%20becomes%20a%20Document%20object.%0D%0A%0D%0AThe%20Document%20object%20provides%20access%20to%20all%20HTML%20elements%20in%20a%20page%2C%20from%20within%20a%20script.%0D%0A%0D%0ATip%3A%C2%A0The%20Document%20object%20is%20also%20part%20of%20the%20Window%20object%2C%20a" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;bm_description=HTML%20DOM%20Document%20Object&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;t=HTML%20DOM%20Document%20Object" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML%20DOM%20Document%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;h=HTML%20DOM%20Document%20Object" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML%20DOM%20Document%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;story_title=HTML%20DOM%20Document%20Object" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML%20DOM%20Document%20Object%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;submitHeadline=HTML%20DOM%20Document%20Object&amp;submitSummary=Document%20Object%0D%0AEach%20HTML%20document%20loaded%20into%20a%20browser%20window%20becomes%20a%20Document%20object.%0D%0A%0D%0AThe%20Document%20object%20provides%20access%20to%20all%20HTML%20elements%20in%20a%20page%2C%20from%20within%20a%20script.%0D%0A%0D%0ATip%3A%C2%A0The%20Document%20object%20is%20also%20part%20of%20the%20Window%20object%2C%20a&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fhtml-dom%2Fhtml-dom-document-object%2F&amp;title=HTML%20DOM%20Document%20Object" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/html-dom/html-dom-document-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Form Elements</title>
		<link>http://www.w3updates.com/html/html5-form-elements/</link>
		<comments>http://www.w3updates.com/html/html5-form-elements/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:55:44 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Form Elements]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1553</guid>
		<description><![CDATA[HTML5 has several new elements and attributes for forms. This chapter covers the new form elements: &#60;datalist&#62; &#60;keygen&#62; &#60;output&#62; Browser Support Tag IE Firefox Opera Chrome Safari &#60;datalist&#62; No 4.0 9.5 No No &#60;keygen&#62; No 4.0 10.5 3.0 No &#60;output&#62; No 4.0 9.5 10.0 5.1 &#160; &#60;datalist&#62; Element The &#60;datalist&#62; element specifies a list of [...]]]></description>
			<content:encoded><![CDATA[<h2></h2>
<p>HTML5 has several new elements and attributes for forms.</p>
<p>This chapter covers the new form elements:</p>
<ul>
<li>&lt;datalist&gt;</li>
<li>&lt;keygen&gt;</li>
<li>&lt;output&gt;</li>
</ul>
<hr />
<h2>Browser Support</h2>
<table>
<tbody>
<tr>
<th align="left" width="25%">Tag</th>
<th align="left" width="15%">IE</th>
<th align="left" width="15%">Firefox</th>
<th align="left" width="15%">Opera</th>
<th align="left" width="15%">Chrome</th>
<th align="left" width="15%">Safari</th>
</tr>
<tr>
<td>&lt;datalist&gt;</td>
<td>No</td>
<td>4.0</td>
<td>9.5</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td>&lt;keygen&gt;</td>
<td>No</td>
<td>4.0</td>
<td>10.5</td>
<td>3.0</td>
<td>No</td>
</tr>
<tr>
<td>&lt;output&gt;</td>
<td>No</td>
<td>4.0</td>
<td>9.5</td>
<td>10.0</td>
<td>5.1</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>&lt;datalist&gt; Element</h2>
<p>The &lt;datalist&gt; element specifies a list of options for an input field.</p>
<p>The list is created with &lt;option&gt; elements inside the &lt;datalist&gt;.</p>
<p>To bind a &lt;datalist&gt; to an input field, let the list attribute of the input field refer to the id of the datalist:</p>
<div>
<h2>Example</h2>
<div>Webpage: &lt;input type=&#8221;url&#8221; list=&#8221;url_list&#8221; name=&#8221;link&#8221; /&gt;<br />
&lt;datalist id=&#8221;url_list&#8221;&gt;<br />
&lt;option label=&#8221;W3Schools&#8221; value=&#8221;http://www.w3schools.com&#8221; /&gt;<br />
&lt;option label=&#8221;Google&#8221; value=&#8221;http://www.google.com&#8221; /&gt;<br />
&lt;option label=&#8221;Microsoft&#8221; value=&#8221;http://www.microsoft.com&#8221; /&gt;<br />
&lt;/datalist&gt;</div>
<p>Try it yourself »</p></div>
<p><strong>Tip:</strong> The &lt;option&gt; elements should always have a value attribute.</p>
<hr />
<h2>&lt;keygen&gt; Element</h2>
<p>The purpose of the &lt;keygen&gt; element is to provide a secure way to authenticate users.</p>
<p>The &lt;keygen&gt; element is a key-pair generator. When a form is submitted, two keys are generated, one private and one public.</p>
<p>The private key is stored on the client, and the public key is sent to the server. The public key could be used to generate a client certificate to authenticate the user in the future.</p>
<p>Currently, the browser support for this element is not good enough to be a useful security standard.</p>
<div>
<h2>Example</h2>
<div>&lt;form action=&#8221;demo_form.asp&#8221; method=&#8221;get&#8221;&gt;<br />
Username: &lt;input type=&#8221;text&#8221; name=&#8221;usr_name&#8221; /&gt;<br />
Encryption: &lt;keygen name=&#8221;security&#8221; /&gt;<br />
&lt;input type=&#8221;submit&#8221; /&gt;<br />
&lt;/form&gt;</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>&lt;output&gt; Element</h2>
<p>The &lt;output&gt; element is used for different types of output, like calculations or script output:</p>
<div>
<h2>Example</h2>
<div>&lt;form oninput=&#8221;x.value=parseInt(a.value)+parseInt(b.value)&#8221;&gt;0<br />
&lt;input type=&#8221;range&#8221; name=&#8221;a&#8221; value=&#8221;50&#8243; /&gt;100<br />
+&lt;input type=&#8221;number&#8221; name=&#8221;b&#8221; value=&#8221;50&#8243; /&gt;<br />
=&lt;output name=&#8221;x&#8221; for=&#8221;a b&#8221;&gt;&lt;/output&gt;<br />
&lt;/form&gt;</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>HTML5 New Form Elements</h2>
<table>
<tbody>
<tr>
<th align="left" width="150">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td>&lt;datalist&gt;</td>
<td>Defines a list of options for an input field</td>
</tr>
<tr>
<td>&lt;keygen&gt;</td>
<td>Defines a key-pair generator field</td>
</tr>
<tr>
<td>&lt;output&gt;</td>
<td>Represents the result of a calculation</td>
</tr>
</tbody>
</table>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements&amp;bodytext=%0D%0AHTML5%20has%20several%20new%20elements%20and%20attributes%20for%20forms.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20form%20elements%3A%0D%0A%0D%0A%09%26lt%3Bdatalist%26gt%3B%0D%0A%09%26lt%3Bkeygen%26gt%3B%0D%0A%09%26lt%3Boutput%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABrowser%20Support%0D%0A%0D%0A%0D%0A%0D%0ATag%0D%0AIE%0D%0AFirefox%0D%0AOpera%0D%0AChrome%0D%0ASafari%0D%0A%0D%0A%0D%0A%26lt%3Bdatalist%26" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements&amp;notes=%0D%0AHTML5%20has%20several%20new%20elements%20and%20attributes%20for%20forms.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20form%20elements%3A%0D%0A%0D%0A%09%26lt%3Bdatalist%26gt%3B%0D%0A%09%26lt%3Bkeygen%26gt%3B%0D%0A%09%26lt%3Boutput%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABrowser%20Support%0D%0A%0D%0A%0D%0A%0D%0ATag%0D%0AIE%0D%0AFirefox%0D%0AOpera%0D%0AChrome%0D%0ASafari%0D%0A%0D%0A%0D%0A%26lt%3Bdatalist%26" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;t=HTML5%20Form%20Elements" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements&amp;annotation=%0D%0AHTML5%20has%20several%20new%20elements%20and%20attributes%20for%20forms.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20form%20elements%3A%0D%0A%0D%0A%09%26lt%3Bdatalist%26gt%3B%0D%0A%09%26lt%3Bkeygen%26gt%3B%0D%0A%09%26lt%3Boutput%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABrowser%20Support%0D%0A%0D%0A%0D%0A%0D%0ATag%0D%0AIE%0D%0AFirefox%0D%0AOpera%0D%0AChrome%0D%0ASafari%0D%0A%0D%0A%0D%0A%26lt%3Bdatalist%26" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML5%20Form%20Elements&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;headline=HTML5%20Form%20Elements&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=%0D%0AHTML5%20has%20several%20new%20elements%20and%20attributes%20for%20forms.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20form%20elements%3A%0D%0A%0D%0A%09%26lt%3Bdatalist%26gt%3B%0D%0A%09%26lt%3Bkeygen%26gt%3B%0D%0A%09%26lt%3Boutput%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABrowser%20Support%0D%0A%0D%0A%0D%0A%0D%0ATag%0D%0AIE%0D%0AFirefox%0D%0AOpera%0D%0AChrome%0D%0ASafari%0D%0A%0D%0A%0D%0A%26lt%3Bdatalist%26" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;bm_description=HTML5%20Form%20Elements&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;t=HTML5%20Form%20Elements" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML5%20Form%20Elements&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;h=HTML5%20Form%20Elements" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML5%20Form%20Elements&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;story_title=HTML5%20Form%20Elements" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML5%20Form%20Elements%20-%20http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;submitHeadline=HTML5%20Form%20Elements&amp;submitSummary=%0D%0AHTML5%20has%20several%20new%20elements%20and%20attributes%20for%20forms.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20form%20elements%3A%0D%0A%0D%0A%09%26lt%3Bdatalist%26gt%3B%0D%0A%09%26lt%3Bkeygen%26gt%3B%0D%0A%09%26lt%3Boutput%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABrowser%20Support%0D%0A%0D%0A%0D%0A%0D%0ATag%0D%0AIE%0D%0AFirefox%0D%0AOpera%0D%0AChrome%0D%0ASafari%0D%0A%0D%0A%0D%0A%26lt%3Bdatalist%26&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-form-elements%2F&amp;title=HTML5%20Form%20Elements" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/html/html5-form-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Input Types</title>
		<link>http://www.w3updates.com/html/html5-input-types/</link>
		<comments>http://www.w3updates.com/html/html5-input-types/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:55:16 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Input Types]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1552</guid>
		<description><![CDATA[HTML5 New Input Types HTML5 has several new input types for forms. These new features allow for better input control and validation. This chapter covers the new input types: email url number range Date pickers (date, month, week, time, datetime, datetime-local) search color Browser Support Input type IE Firefox Opera Chrome Safari email No 4.0 [...]]]></description>
			<content:encoded><![CDATA[<h2>HTML5 New Input Types</h2>
<p>HTML5 has several new input types for forms. These new features allow for better input control and validation.</p>
<p>This chapter covers the new input types:</p>
<ul>
<li>email</li>
<li>url</li>
<li>number</li>
<li>range</li>
<li>Date pickers (date, month, week, time, datetime, datetime-local)</li>
<li>search</li>
<li>color</li>
</ul>
<hr />
<h2>Browser Support</h2>
<table>
<tbody>
<tr>
<th align="left" width="25%">Input type</th>
<th align="left" width="15%">IE</th>
<th align="left" width="15%">Firefox</th>
<th align="left" width="15%">Opera</th>
<th align="left" width="15%">Chrome</th>
<th align="left" width="15%">Safari</th>
</tr>
<tr>
<td>email</td>
<td>No</td>
<td>4.0</td>
<td>9.0</td>
<td>10.0</td>
<td>No</td>
</tr>
<tr>
<td>url</td>
<td>No</td>
<td>4.0</td>
<td>9.0</td>
<td>10.0</td>
<td>No</td>
</tr>
<tr>
<td>number</td>
<td>No</td>
<td>No</td>
<td>9.0</td>
<td>7.0</td>
<td>5.1</td>
</tr>
<tr>
<td>range</td>
<td>No</td>
<td>No</td>
<td>9.0</td>
<td>4.0</td>
<td>4.0</td>
</tr>
<tr>
<td>Date pickers</td>
<td>No</td>
<td>No</td>
<td>9.0</td>
<td>10.0</td>
<td>5.1</td>
</tr>
<tr>
<td>search</td>
<td>No</td>
<td>4.0</td>
<td>11.0</td>
<td>10.0</td>
<td>No</td>
</tr>
<tr>
<td>color</td>
<td>No</td>
<td>No</td>
<td>11.0</td>
<td>12</td>
<td>No</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> Opera has the best support for the new input types. However, you can already start using them in all major browsers. If they are not supported, they will behave as regular text fields.</p>
<hr />
<h2>Input Type &#8211; email</h2>
<p>The email type is used for input fields that should contain an e-mail address.</p>
<p>The value of the email field is automatically validated when the form is submitted.</p>
<div>
<h2>Example</h2>
<div>E-mail: &lt;input type=&#8221;email&#8221; name=&#8221;user_email&#8221; /&gt;</div>
<p>Try it yourself »</p></div>
<p><strong>Tip:</strong> Safari on the iPhone recognizes the email input type, and changes the on-screen keyboard to match it (adds @ and .com options).</p>
<hr />
<h2>Input Type &#8211; url</h2>
<p>The url type is used for input fields that should contain a URL address.</p>
<p>The value of the url field is automatically validated when the form is submitted.</p>
<div>
<h2>Example</h2>
<div>Homepage: &lt;input type=&#8221;url&#8221; name=&#8221;user_url&#8221; /&gt;</div>
<p>Try it yourself »</p></div>
<p><strong>Tip:</strong> Safari on the iPhone recognizes the url input type, and changes the on-screen keyboard to match it (adds .com option).</p>
<hr />
<h2>Input Type &#8211; number</h2>
<p>The number type is used for input fields that should contain a numeric value.</p>
<p>You can also set restrictions on what numbers are accepted:</p>
<div>
<h2>Example</h2>
<div>Points: &lt;input type=&#8221;number&#8221; name=&#8221;points&#8221; min=&#8221;1&#8243; max=&#8221;10&#8243; /&gt;</div>
<p>Try it yourself »</p></div>
<p>Use the following attributes to specify restrictions for the number type:</p>
<table>
<tbody>
<tr>
<th align="left" width="20%">Attribute</th>
<th align="left" width="20%">Value</th>
<th align="left" width="50%">Description</th>
</tr>
<tr>
<td>max</td>
<td><em>number</em></td>
<td>Specifies the maximum value allowed</td>
</tr>
<tr>
<td>min</td>
<td><em>number</em></td>
<td>Specifies the minimum value allowed</td>
</tr>
<tr>
<td>step</td>
<td><em>number</em></td>
<td>Specifies legal number intervals (if step=&#8221;3&#8243;, legal numbers could be -3,0,3,6, etc)</td>
</tr>
<tr>
<td>value</td>
<td><em>number</em></td>
<td>Specifies the default value</td>
</tr>
</tbody>
</table>
<p>Try an example with all the restriction attributes: Try it yourself</p>
<hr />
<h2>Input Type &#8211; range</h2>
<p>The range type is used for input fields that should contain a value from a range of numbers.</p>
<p>The range type is displayed as a slider bar.</p>
<p>You can also set restrictions on what numbers are accepted:</p>
<div>
<h2>Example</h2>
<div>&lt;input type=&#8221;range&#8221; name=&#8221;points&#8221; min=&#8221;1&#8243; max=&#8221;10&#8243; /&gt;</div>
<p>Try it yourself »</p></div>
<p>Use the following attributes to specify restrictions for the range type:</p>
<table>
<tbody>
<tr>
<th align="left" width="20%">Attribute</th>
<th align="left" width="20%">Value</th>
<th align="left" width="50%">Description</th>
</tr>
<tr>
<td>max</td>
<td><em>number</em></td>
<td>Specifies the maximum value allowed</td>
</tr>
<tr>
<td>min</td>
<td><em>number</em></td>
<td>Specifies the minimum value allowed</td>
</tr>
<tr>
<td>step</td>
<td><em>number</em></td>
<td>Specifies legal number intervals (if step=&#8221;3&#8243;, legal numbers could be -3,0,3,6, etc)</td>
</tr>
<tr>
<td>value</td>
<td><em>number</em></td>
<td>Specifies the default value</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>Input Type &#8211; Date Pickers</h2>
<p>HTML5 has several new input types for selecting date and time:</p>
<ul>
<li>date &#8211; Selects date, month and year</li>
<li>month &#8211; Selects month and year</li>
<li>week &#8211; Selects week and year</li>
<li>time &#8211; Selects time (hour and minute)</li>
<li>datetime &#8211; Selects time, date, month and year (UTC time)</li>
<li>datetime-local &#8211; Selects time, date, month and year (local time)</li>
</ul>
<p>The following example allows you to select a date from a calendar:</p>
<div>
<h2>Example</h2>
<div>Date: &lt;input type=&#8221;date&#8221; name=&#8221;user_date&#8221; /&gt;</div>
<p>Try it yourself »</p></div>
<p>Input type &#8220;month&#8221;: Try it yourself</p>
<p>Input type &#8220;week&#8221;: Try it yourself</p>
<p>Input type &#8220;time&#8221;: Try it yourself</p>
<p>Input type &#8220;datetime&#8221;: Try it yourself</p>
<p>Input type &#8220;datetime-local&#8221;: Try it yourself</p>
<hr />
<h2>Input Type &#8211; search</h2>
<p>The search type is used for search fields, like a site search, or Google search.</p>
<p>The search field behaves like a regular text field.</p>
<hr />
<h2>Input Type &#8211; color</h2>
<p>The color type is used for input fields that should contain a color.</p>
<p>The Opera browser will allow you to select a color from a color picker, Google&#8217;s Chrome will only allow hexadecimal color values to be submitted:</p>
<div>
<h2>Example</h2>
<div>Color: &lt;input type=&#8221;color&#8221; name=&#8221;user_color&#8221; /&gt;</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>HTML5 &lt;input&gt; Tag</h2>
<table>
<tbody>
<tr>
<th align="left" width="150">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td>&lt;input&gt;</td>
<td>Defines an input field</td>
</tr>
</tbody>
</table>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types&amp;bodytext=HTML5%20New%20Input%20Types%0D%0AHTML5%20has%20several%20new%20input%20types%20for%20forms.%20These%20new%20features%20allow%20for%20better%20input%20control%20and%20validation.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20input%20types%3A%0D%0A%0D%0A%09email%0D%0A%09url%0D%0A%09number%0D%0A%09range%0D%0A%09Date%20pickers%20%28date%2C%20month%2C%20week%2C%20time" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types&amp;notes=HTML5%20New%20Input%20Types%0D%0AHTML5%20has%20several%20new%20input%20types%20for%20forms.%20These%20new%20features%20allow%20for%20better%20input%20control%20and%20validation.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20input%20types%3A%0D%0A%0D%0A%09email%0D%0A%09url%0D%0A%09number%0D%0A%09range%0D%0A%09Date%20pickers%20%28date%2C%20month%2C%20week%2C%20time" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;t=HTML5%20Input%20Types" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types&amp;annotation=HTML5%20New%20Input%20Types%0D%0AHTML5%20has%20several%20new%20input%20types%20for%20forms.%20These%20new%20features%20allow%20for%20better%20input%20control%20and%20validation.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20input%20types%3A%0D%0A%0D%0A%09email%0D%0A%09url%0D%0A%09number%0D%0A%09range%0D%0A%09Date%20pickers%20%28date%2C%20month%2C%20week%2C%20time" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML5%20Input%20Types&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;headline=HTML5%20Input%20Types&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=HTML5%20New%20Input%20Types%0D%0AHTML5%20has%20several%20new%20input%20types%20for%20forms.%20These%20new%20features%20allow%20for%20better%20input%20control%20and%20validation.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20input%20types%3A%0D%0A%0D%0A%09email%0D%0A%09url%0D%0A%09number%0D%0A%09range%0D%0A%09Date%20pickers%20%28date%2C%20month%2C%20week%2C%20time" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;bm_description=HTML5%20Input%20Types&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;t=HTML5%20Input%20Types" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML5%20Input%20Types&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;h=HTML5%20Input%20Types" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML5%20Input%20Types&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;story_title=HTML5%20Input%20Types" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML5%20Input%20Types%20-%20http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;submitHeadline=HTML5%20Input%20Types&amp;submitSummary=HTML5%20New%20Input%20Types%0D%0AHTML5%20has%20several%20new%20input%20types%20for%20forms.%20These%20new%20features%20allow%20for%20better%20input%20control%20and%20validation.%0D%0A%0D%0AThis%20chapter%20covers%20the%20new%20input%20types%3A%0D%0A%0D%0A%09email%0D%0A%09url%0D%0A%09number%0D%0A%09range%0D%0A%09Date%20pickers%20%28date%2C%20month%2C%20week%2C%20time&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-input-types%2F&amp;title=HTML5%20Input%20Types" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/html/html5-input-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Web Storage</title>
		<link>http://www.w3updates.com/html/html5-web-storage/</link>
		<comments>http://www.w3updates.com/html/html5-web-storage/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:54:37 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Web Storage]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1551</guid>
		<description><![CDATA[Storing Data on the Client HTML5 offers two new objects for storing data on the client: localStorage &#8211; stores data with no time limit sessionStorage &#8211; stores data for one session Earlier, this was done with cookies. Cookies are not suitable for large amounts of data, because they are passed on by EVERY request to [...]]]></description>
			<content:encoded><![CDATA[<h2>Storing Data on the Client</h2>
<p>HTML5 offers two new objects for storing data on the client:</p>
<ul>
<li>localStorage &#8211; stores data with no time limit</li>
<li>sessionStorage &#8211; stores data for one session</li>
</ul>
<p>Earlier, this was done with cookies. Cookies are not suitable for large amounts of data, because they are passed on by EVERY request to the server, making it very slow and in-effective.</p>
<p>In HTML5, the data is NOT passed on by every server request, but used ONLY when asked for. It is possible to store large amounts of data without affecting the website&#8217;s performance.</p>
<p>The data is stored in different areas for different websites, and a website can only access data stored by itself.</p>
<p>HTML5 uses JavaScript to store and access the data.</p>
<hr />
<h2>The localStorage Object</h2>
<p>The localStorage object stores the data with no time limit. The data will be available the next day, week, or year.</p>
<p>How to create and access a localStorage:</p>
<div>
<h2>Example</h2>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
localStorage.lastname=&#8221;Smith&#8221;;<br />
document.write(localStorage.lastname);<br />
&lt;/script&gt;</div>
<p>Try it yourself »</p></div>
<p>The following example counts the number of times a user has visited a page:</p>
<div>
<h2>Example</h2>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
if (localStorage.pagecount)<br />
{<br />
localStorage.pagecount=Number(localStorage.pagecount) +1;<br />
}<br />
else<br />
{<br />
localStorage.pagecount=1;<br />
}<br />
document.write(&#8220;Visits &#8220;+ localStorage.pagecount + &#8221; time(s).&#8221;);<br />
&lt;/script&gt;</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>The sessionStorage Object</h2>
<p>The sessionStorage object stores the data for one session. The data is deleted when the user closes the browser window.</p>
<p>How to create and access a sessionStorage:</p>
<div>
<h2>Example</h2>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
sessionStorage.lastname=&#8221;Smith&#8221;;<br />
document.write(sessionStorage.lastname);<br />
&lt;/script&gt;</div>
<p>Try it yourself »</p></div>
<p>The following example counts the number of times a user has visited a page, in the current session:</p>
<div>
<h2>Example</h2>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
if (sessionStorage.pagecount)<br />
{<br />
sessionStorage.pagecount=Number(sessionStorage.pagecount) +1;<br />
}<br />
else<br />
{<br />
sessionStorage.pagecount=1;<br />
}<br />
document.write(&#8220;Visits &#8220;+sessionStorage.pagecount+&#8221; time(s) this session.&#8221;);<br />
&lt;/script&gt;</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage&amp;bodytext=Storing%20Data%20on%20the%20Client%0D%0AHTML5%20offers%20two%20new%20objects%20for%20storing%20data%20on%20the%20client%3A%0D%0A%0D%0A%09localStorage%20-%20stores%20data%20with%20no%20time%20limit%0D%0A%09sessionStorage%20-%20stores%20data%20for%20one%20session%0D%0A%0D%0AEarlier%2C%20this%20was%20done%20with%20cookies.%20Cookies%20are%20not%20suitable" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage&amp;notes=Storing%20Data%20on%20the%20Client%0D%0AHTML5%20offers%20two%20new%20objects%20for%20storing%20data%20on%20the%20client%3A%0D%0A%0D%0A%09localStorage%20-%20stores%20data%20with%20no%20time%20limit%0D%0A%09sessionStorage%20-%20stores%20data%20for%20one%20session%0D%0A%0D%0AEarlier%2C%20this%20was%20done%20with%20cookies.%20Cookies%20are%20not%20suitable" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;t=HTML5%20Web%20Storage" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage&amp;annotation=Storing%20Data%20on%20the%20Client%0D%0AHTML5%20offers%20two%20new%20objects%20for%20storing%20data%20on%20the%20client%3A%0D%0A%0D%0A%09localStorage%20-%20stores%20data%20with%20no%20time%20limit%0D%0A%09sessionStorage%20-%20stores%20data%20for%20one%20session%0D%0A%0D%0AEarlier%2C%20this%20was%20done%20with%20cookies.%20Cookies%20are%20not%20suitable" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML5%20Web%20Storage&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;headline=HTML5%20Web%20Storage&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Storing%20Data%20on%20the%20Client%0D%0AHTML5%20offers%20two%20new%20objects%20for%20storing%20data%20on%20the%20client%3A%0D%0A%0D%0A%09localStorage%20-%20stores%20data%20with%20no%20time%20limit%0D%0A%09sessionStorage%20-%20stores%20data%20for%20one%20session%0D%0A%0D%0AEarlier%2C%20this%20was%20done%20with%20cookies.%20Cookies%20are%20not%20suitable" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;bm_description=HTML5%20Web%20Storage&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;t=HTML5%20Web%20Storage" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML5%20Web%20Storage&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;h=HTML5%20Web%20Storage" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML5%20Web%20Storage&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;story_title=HTML5%20Web%20Storage" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML5%20Web%20Storage%20-%20http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;submitHeadline=HTML5%20Web%20Storage&amp;submitSummary=Storing%20Data%20on%20the%20Client%0D%0AHTML5%20offers%20two%20new%20objects%20for%20storing%20data%20on%20the%20client%3A%0D%0A%0D%0A%09localStorage%20-%20stores%20data%20with%20no%20time%20limit%0D%0A%09sessionStorage%20-%20stores%20data%20for%20one%20session%0D%0A%0D%0AEarlier%2C%20this%20was%20done%20with%20cookies.%20Cookies%20are%20not%20suitable&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-web-storage%2F&amp;title=HTML5%20Web%20Storage" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/html/html5-web-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Event Attributes</title>
		<link>http://www.w3updates.com/html/html5-event-attributes/</link>
		<comments>http://www.w3updates.com/html/html5-event-attributes/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:53:59 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Event Attributes]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1550</guid>
		<description><![CDATA[Global Event Attributes HTML 4 added the ability to let events trigger actions in a browser, like starting a JavaScript when a user clicks on an element. To learn more about programming events, please visit our JavaScript tutorial and our DHTML tutorial. Below are the global event attributes that can be added to HTML5 elements to define event [...]]]></description>
			<content:encoded><![CDATA[<h2>Global Event Attributes</h2>
<p>HTML 4 added the ability to let events trigger actions in a browser, like starting a JavaScript when a user clicks on an element.</p>
<p>To learn more about programming events, please visit our JavaScript tutorial and our DHTML tutorial.</p>
<p>Below are the global event attributes that can be added to HTML5 elements to define event actions.</p>
<p>New : New event attributes in HTML5.</p>
<hr />
<h2>Window Event Attributes</h2>
<p>Events triggered for the window object (applies to the &lt;body&gt; tag):</p>
<table>
<tbody>
<tr>
<th align="left" width="160">Attribute</th>
<th align="left" width="40">Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>onafterprintNew</td>
<td><em>script</em></td>
<td>Script to be run after the document is printed</td>
</tr>
<tr>
<td>onbeforeprintNew</td>
<td><em>script</em></td>
<td>Script to be run before the document is printed</td>
</tr>
<tr>
<td>onbeforeonloadNew</td>
<td><em>script</em></td>
<td>Script to be run before the document loads</td>
</tr>
<tr>
<td>onblur</td>
<td><em>script</em></td>
<td>Script to be run when the window loses focus</td>
</tr>
<tr>
<td>onerrorNew</td>
<td><em>script</em></td>
<td>Script to be run when an error occur</td>
</tr>
<tr>
<td>onfocus</td>
<td><em>script</em></td>
<td>Script to be run when the window gets focus</td>
</tr>
<tr>
<td>onhaschangeNew</td>
<td><em>script</em></td>
<td>Script to be run when the document has changed</td>
</tr>
<tr>
<td>onload</td>
<td><em>script</em></td>
<td>Script to be run when the document loads</td>
</tr>
<tr>
<td>onmessageNew</td>
<td><em>script</em></td>
<td>Script to be run when the message is triggered</td>
</tr>
<tr>
<td>onofflineNew</td>
<td><em>script</em></td>
<td>Script to be run when the document goes offline</td>
</tr>
<tr>
<td>ononlineNew</td>
<td><em>script</em></td>
<td>Script to be run when the document comes online</td>
</tr>
<tr>
<td>onpagehideNew</td>
<td><em>script</em></td>
<td>Script to be run when the window is hidden</td>
</tr>
<tr>
<td>onpageshowNew</td>
<td><em>script</em></td>
<td>Script to be run when the window becomes visible</td>
</tr>
<tr>
<td>onpopstateNew</td>
<td><em>script</em></td>
<td>Script to be run when the window&#8217;s history changes</td>
</tr>
<tr>
<td>onredoNew</td>
<td><em>script</em></td>
<td>Script to be run when the document performs a redo</td>
</tr>
<tr>
<td>onresizeNew</td>
<td><em>script</em></td>
<td>Script to be run when the window is resized</td>
</tr>
<tr>
<td>onstorageNew</td>
<td><em>script</em></td>
<td>Script to be run when the document loads</td>
</tr>
<tr>
<td>onundoNew</td>
<td><em>script</em></td>
<td>Script to be run when the document performs an undo</td>
</tr>
<tr>
<td>onunloadNew</td>
<td><em>script</em></td>
<td>Script to be run when the user leaves the document</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>Form Events</h2>
<p>Events triggered by actions inside a HTML form (applies to all HTML5 elements, but is most common in form elements):</p>
<table>
<tbody>
<tr>
<th align="left" width="160">Attribute</th>
<th align="left" width="40">Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>onblur</td>
<td><em>script </em></td>
<td>Script to be run when an element loses focus</td>
</tr>
<tr>
<td>onchange</td>
<td><em>script</em></td>
<td>Script to be run when an element changes</td>
</tr>
<tr>
<td>oncontextmenuNew</td>
<td><em>script </em></td>
<td>Script to be run when a context menu is triggered</td>
</tr>
<tr>
<td>onfocus</td>
<td><em>script </em></td>
<td>Script to be run when an element gets focus</td>
</tr>
<tr>
<td>onformchangeNew</td>
<td><em>script </em></td>
<td>Script to be run when a form changes</td>
</tr>
<tr>
<td>onforminputNew</td>
<td><em>script </em></td>
<td>Script to be run when a form gets user input</td>
</tr>
<tr>
<td>oninputNew</td>
<td><em>script </em></td>
<td>Script to be run when an element gets user input</td>
</tr>
<tr>
<td>oninvalidNew</td>
<td><em>script </em></td>
<td>Script to be run when an element is invalid</td>
</tr>
<tr>
<td>onreset</td>
<td><em>script </em></td>
<td>Script to be run when a form is reset<br />
Not supported in HTML5</td>
</tr>
<tr>
<td>onselect</td>
<td><em>script </em></td>
<td>Script to be run when an element is selected</td>
</tr>
<tr>
<td>onsubmit</td>
<td><em>script</em></td>
<td>Script to be run when a form is submitted</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>Keyboard Events</h2>
<p>Events triggered by a keyboard (applies to all HTML5 elements):</p>
<table>
<tbody>
<tr>
<th align="left" width="160">Attribute</th>
<th align="left" width="40">Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>onkeydown</td>
<td><em>script</em></td>
<td>Script to be run when a key is pressed down</td>
</tr>
<tr>
<td>onkeypress</td>
<td><em>script</em></td>
<td>Script to be run when a key is pressed and released</td>
</tr>
<tr>
<td>onkeyup</td>
<td><em>script</em></td>
<td>Script to be run when a key is released</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>Mouse Events</h2>
<p>Events triggered by a mouse, or similar user actions (applies to all HTML5 elements):</p>
<table>
<tbody>
<tr>
<th align="left" width="160">Attribute</th>
<th align="left" width="40">Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>onclick</td>
<td><em>script</em></td>
<td>Script to be run on a mouse click</td>
</tr>
<tr>
<td>ondblclick</td>
<td><em>script</em></td>
<td>Script to be run on a mouse double-click</td>
</tr>
<tr>
<td>ondragNew</td>
<td><em>script </em></td>
<td>Script to be run when an element is dragged</td>
</tr>
<tr>
<td>ondragendNew</td>
<td><em>script </em></td>
<td>Script to be run at the end of a drag operation</td>
</tr>
<tr>
<td>ondragenterNew</td>
<td><em>script </em></td>
<td>Script to be run when an element has been dragged to a valid drop target</td>
</tr>
<tr>
<td>ondragleaveNew</td>
<td><em>script </em></td>
<td>Script to be run when an element leaves a valid drop target</td>
</tr>
<tr>
<td>ondragoverNew</td>
<td><em>script </em></td>
<td>Script to be run when an element is being dragged over a valid drop target</td>
</tr>
<tr>
<td>ondragstartNew</td>
<td><em>script </em></td>
<td>Script to be run at the start of a drag operation</td>
</tr>
<tr>
<td>ondropNew</td>
<td><em>script </em></td>
<td>Script to be run when dragged element is being dropped</td>
</tr>
<tr>
<td>onmousedown</td>
<td><em>script</em></td>
<td>Script to be run when a mouse button is pressed</td>
</tr>
<tr>
<td>onmousemove</td>
<td><em>script</em></td>
<td>Script to be run when the mouse pointer moves</td>
</tr>
<tr>
<td>onmouseout</td>
<td><em>script</em></td>
<td>Script to be run when the mouse pointer moves out of an element</td>
</tr>
<tr>
<td>onmouseover</td>
<td><em>script</em></td>
<td>Script to be run when the mouse pointer moves over an element</td>
</tr>
<tr>
<td>onmouseup</td>
<td><em>script</em></td>
<td>Script to be run when a mouse button is released</td>
</tr>
<tr>
<td>onmousewheelNew</td>
<td><em>script </em></td>
<td>Script to be run when the mouse wheel is being rotated</td>
</tr>
<tr>
<td>onscrollNew</td>
<td><em>script </em></td>
<td>Script to be run when an element&#8217;s scrollbar is being scrolled</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>Media Events</h2>
<p>Events triggered by medias like videos, images and audio (applies to all HTML5 elements, but is most common in media elements, like audio, embed, img, object, and video):</p>
<table>
<tbody>
<tr>
<th align="left" width="160">Attribute</th>
<th align="left" width="40">Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>onabort</td>
<td><em>script </em></td>
<td>Script to be run on abort</td>
</tr>
<tr>
<td>oncanplayNew</td>
<td><em>script</em></td>
<td>Script to be run when a file is ready to start playing (when it has buffered enough to begin)</td>
</tr>
<tr>
<td>oncanplaythroughNew</td>
<td><em>script</em></td>
<td>Script to be run when a file can be played all the way to the end without pausing for buffering</td>
</tr>
<tr>
<td>ondurationchangeNew</td>
<td><em>script </em></td>
<td>Script to be run when the length of the media changes</td>
</tr>
<tr>
<td>onemptiedNew</td>
<td><em>script </em></td>
<td>Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)</td>
</tr>
<tr>
<td>onendedNew</td>
<td><em>script </em></td>
<td>Script to be run when the media has reach the end (a useful event for messages like &#8220;thanks for listening&#8221;)</td>
</tr>
<tr>
<td>onerrorNew</td>
<td><em>script </em></td>
<td>Script to be run when an error occurs when the file is being loaded</td>
</tr>
<tr>
<td>onloadeddataNew</td>
<td><em>script</em></td>
<td>Script to be run when media data is loaded</td>
</tr>
<tr>
<td>onloadedmetadataNew</td>
<td><em>script</em></td>
<td>Script to be run when meta data (like dimensions and duration) are loaded</td>
</tr>
<tr>
<td>onloadstartNew</td>
<td><em>script</em></td>
<td>Script to be run just as the file begins to load before anything is actually loaded</td>
</tr>
<tr>
<td>onpauseNew</td>
<td><em>script </em></td>
<td>Script to be run when the media is paused either by the user or programmatically</td>
</tr>
<tr>
<td>onplayNew</td>
<td><em>script </em></td>
<td>Script to be run when the media is ready to start playing</td>
</tr>
<tr>
<td>onplayingNew</td>
<td><em>script </em></td>
<td>Script to be run when the media actually has started playing</td>
</tr>
<tr>
<td>onprogressNew</td>
<td><em>script </em></td>
<td>Script to be run when the browser is in the process of getting the media data</td>
</tr>
<tr>
<td>onratechangeNew</td>
<td><em>script </em></td>
<td>Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)</td>
</tr>
<tr>
<td>onreadystatechangeNew</td>
<td><em>script </em></td>
<td>Script to be run each time the ready state changes (the ready state tracks the state of the media data)</td>
</tr>
<tr>
<td>onseekedNew</td>
<td><em>script </em></td>
<td>Script to be run when the seeking attribute is set to false indicating that seeking has ended</td>
</tr>
<tr>
<td>onseekingNew</td>
<td><em>script </em></td>
<td>Script to be run when the seeking attribute is set to true indicating that seeking is active</td>
</tr>
<tr>
<td>onstalledNew</td>
<td><em>script </em></td>
<td>Script to be run when the browser is unable to fetch the media data for whatever reason</td>
</tr>
<tr>
<td>onsuspendNew</td>
<td><em>script</em></td>
<td>Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason</td>
</tr>
<tr>
<td>ontimeupdateNew</td>
<td><em>script</em></td>
<td>Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)</td>
</tr>
<tr>
<td>onvolumechangeNew</td>
<td><em>script</em></td>
<td>Script to be run each time the volume is changed which (includes setting the volume to &#8220;mute&#8221;)</td>
</tr>
<tr>
<td>onwaitingNew</td>
<td><em>script</em></td>
<td>Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)</td>
</tr>
</tbody>
</table>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes&amp;bodytext=Global%20Event%20Attributes%0D%0AHTML%204%20added%20the%20ability%20to%20let%20events%20trigger%20actions%20in%20a%20browser%2C%20like%20starting%20a%20JavaScript%20when%20a%20user%20clicks%20on%20an%20element.%0D%0A%0D%0ATo%20learn%20more%20about%20programming%20events%2C%20please%20visit%20our%C2%A0JavaScript%20tutorial%C2%A0and%20our%C2%A0DHTM" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes&amp;notes=Global%20Event%20Attributes%0D%0AHTML%204%20added%20the%20ability%20to%20let%20events%20trigger%20actions%20in%20a%20browser%2C%20like%20starting%20a%20JavaScript%20when%20a%20user%20clicks%20on%20an%20element.%0D%0A%0D%0ATo%20learn%20more%20about%20programming%20events%2C%20please%20visit%20our%C2%A0JavaScript%20tutorial%C2%A0and%20our%C2%A0DHTM" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;t=HTML5%20Event%20Attributes" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes&amp;annotation=Global%20Event%20Attributes%0D%0AHTML%204%20added%20the%20ability%20to%20let%20events%20trigger%20actions%20in%20a%20browser%2C%20like%20starting%20a%20JavaScript%20when%20a%20user%20clicks%20on%20an%20element.%0D%0A%0D%0ATo%20learn%20more%20about%20programming%20events%2C%20please%20visit%20our%C2%A0JavaScript%20tutorial%C2%A0and%20our%C2%A0DHTM" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML5%20Event%20Attributes&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;headline=HTML5%20Event%20Attributes&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Global%20Event%20Attributes%0D%0AHTML%204%20added%20the%20ability%20to%20let%20events%20trigger%20actions%20in%20a%20browser%2C%20like%20starting%20a%20JavaScript%20when%20a%20user%20clicks%20on%20an%20element.%0D%0A%0D%0ATo%20learn%20more%20about%20programming%20events%2C%20please%20visit%20our%C2%A0JavaScript%20tutorial%C2%A0and%20our%C2%A0DHTM" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;bm_description=HTML5%20Event%20Attributes&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;t=HTML5%20Event%20Attributes" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML5%20Event%20Attributes&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;h=HTML5%20Event%20Attributes" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML5%20Event%20Attributes&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;story_title=HTML5%20Event%20Attributes" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML5%20Event%20Attributes%20-%20http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;submitHeadline=HTML5%20Event%20Attributes&amp;submitSummary=Global%20Event%20Attributes%0D%0AHTML%204%20added%20the%20ability%20to%20let%20events%20trigger%20actions%20in%20a%20browser%2C%20like%20starting%20a%20JavaScript%20when%20a%20user%20clicks%20on%20an%20element.%0D%0A%0D%0ATo%20learn%20more%20about%20programming%20events%2C%20please%20visit%20our%C2%A0JavaScript%20tutorial%C2%A0and%20our%C2%A0DHTM&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-event-attributes%2F&amp;title=HTML5%20Event%20Attributes" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/html/html5-event-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Global Attributes</title>
		<link>http://www.w3updates.com/html/html5-global-attributes/</link>
		<comments>http://www.w3updates.com/html/html5-global-attributes/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:53:23 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Global]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1549</guid>
		<description><![CDATA[New global attributes in HTML5. Attribute Value Description accesskey character Specifies a shortcut key to access an element class classname Refers to a class specified in a style sheet contenteditableNew true false inherit Specifies whether a user can edit the content of an element or not contextmenuNew menu_id Specifies a context menu for an element. [...]]]></description>
			<content:encoded><![CDATA[<p>New global attributes in HTML5.</p>
<table>
<tbody>
<tr>
<th align="left" width="150">Attribute</th>
<th align="left">Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>accesskey</td>
<td><em>character</em></td>
<td>Specifies a shortcut key to access an element</td>
</tr>
<tr>
<td>class</td>
<td><em>classname</em></td>
<td>Refers to a class specified in a style sheet</td>
</tr>
<tr>
<td>contenteditableNew</td>
<td>true<br />
false<br />
inherit</td>
<td>Specifies whether a user can edit the content of an element or not</td>
</tr>
<tr>
<td>contextmenuNew</td>
<td><em>menu_id</em></td>
<td>Specifies a context menu for an element. The value must be the id of a &lt;menu&gt; element</td>
</tr>
<tr>
<td>dir</td>
<td>ltr<br />
rtl<br />
auto</td>
<td>Specifies the text direction for the content in an element</td>
</tr>
<tr>
<td>draggableNew</td>
<td>true<br />
false<br />
auto</td>
<td>Specifies whether a user is allowed to drag an element or not</td>
</tr>
<tr>
<td>dropzoneNew</td>
<td>copy<br />
move<br />
link</td>
<td>Specifies what happens when dragged items/data is dropped in the element</td>
</tr>
<tr>
<td>hiddenNew</td>
<td>hidden</td>
<td>Specifies that an element should be hidden</td>
</tr>
<tr>
<td>id</td>
<td><em>id</em></td>
<td>Specifies a unique id for an element</td>
</tr>
<tr>
<td>lang</td>
<td><em>language_code</em></td>
<td>Specifies the language of the element&#8217;s content</td>
</tr>
<tr>
<td>spellcheckNew</td>
<td>true<br />
false</td>
<td>Specifies if the element must have its spelling and grammar checked</td>
</tr>
<tr>
<td>style</td>
<td><em>style_definitions</em></td>
<td>Specifies an inline style for an element</td>
</tr>
<tr>
<td>tabindex</td>
<td><em>number</em></td>
<td>Specifies the tab order of an element</td>
</tr>
<tr>
<td>title</td>
<td><em>text</em></td>
<td>Specifies extra information about an element</td>
</tr>
</tbody>
</table>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes&amp;bodytext=New%20global%20attributes%20in%20HTML5.%0D%0A%0D%0A%0D%0A%0D%0AAttribute%0D%0AValue%0D%0ADescription%0D%0A%0D%0A%0D%0Aaccesskey%0D%0Acharacter%0D%0ASpecifies%20a%20shortcut%20key%20to%20access%20an%20element%0D%0A%0D%0A%0D%0Aclass%0D%0Aclassname%0D%0ARefers%20to%20a%20class%20specified%20in%20a%20style%20sheet%0D%0A%0D%0A%0D%0AcontenteditableNew%0D%0Atrue%0D%0Afalse%0D%0Ain" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes&amp;notes=New%20global%20attributes%20in%20HTML5.%0D%0A%0D%0A%0D%0A%0D%0AAttribute%0D%0AValue%0D%0ADescription%0D%0A%0D%0A%0D%0Aaccesskey%0D%0Acharacter%0D%0ASpecifies%20a%20shortcut%20key%20to%20access%20an%20element%0D%0A%0D%0A%0D%0Aclass%0D%0Aclassname%0D%0ARefers%20to%20a%20class%20specified%20in%20a%20style%20sheet%0D%0A%0D%0A%0D%0AcontenteditableNew%0D%0Atrue%0D%0Afalse%0D%0Ain" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;t=HTML5%20Global%20Attributes" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes&amp;annotation=New%20global%20attributes%20in%20HTML5.%0D%0A%0D%0A%0D%0A%0D%0AAttribute%0D%0AValue%0D%0ADescription%0D%0A%0D%0A%0D%0Aaccesskey%0D%0Acharacter%0D%0ASpecifies%20a%20shortcut%20key%20to%20access%20an%20element%0D%0A%0D%0A%0D%0Aclass%0D%0Aclassname%0D%0ARefers%20to%20a%20class%20specified%20in%20a%20style%20sheet%0D%0A%0D%0A%0D%0AcontenteditableNew%0D%0Atrue%0D%0Afalse%0D%0Ain" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML5%20Global%20Attributes&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;headline=HTML5%20Global%20Attributes&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=New%20global%20attributes%20in%20HTML5.%0D%0A%0D%0A%0D%0A%0D%0AAttribute%0D%0AValue%0D%0ADescription%0D%0A%0D%0A%0D%0Aaccesskey%0D%0Acharacter%0D%0ASpecifies%20a%20shortcut%20key%20to%20access%20an%20element%0D%0A%0D%0A%0D%0Aclass%0D%0Aclassname%0D%0ARefers%20to%20a%20class%20specified%20in%20a%20style%20sheet%0D%0A%0D%0A%0D%0AcontenteditableNew%0D%0Atrue%0D%0Afalse%0D%0Ain" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;bm_description=HTML5%20Global%20Attributes&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;t=HTML5%20Global%20Attributes" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML5%20Global%20Attributes&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;h=HTML5%20Global%20Attributes" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML5%20Global%20Attributes&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;story_title=HTML5%20Global%20Attributes" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML5%20Global%20Attributes%20-%20http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;submitHeadline=HTML5%20Global%20Attributes&amp;submitSummary=New%20global%20attributes%20in%20HTML5.%0D%0A%0D%0A%0D%0A%0D%0AAttribute%0D%0AValue%0D%0ADescription%0D%0A%0D%0A%0D%0Aaccesskey%0D%0Acharacter%0D%0ASpecifies%20a%20shortcut%20key%20to%20access%20an%20element%0D%0A%0D%0A%0D%0Aclass%0D%0Aclassname%0D%0ARefers%20to%20a%20class%20specified%20in%20a%20style%20sheet%0D%0A%0D%0A%0D%0AcontenteditableNew%0D%0Atrue%0D%0Afalse%0D%0Ain&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-global-attributes%2F&amp;title=HTML5%20Global%20Attributes" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/html/html5-global-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 canvas.getContext(&#8220;2d&#8221;) reference</title>
		<link>http://www.w3updates.com/html/html5-canvas-getcontext2d-reference/</link>
		<comments>http://www.w3updates.com/html/html5-canvas-getcontext2d-reference/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:52:53 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1555</guid>
		<description><![CDATA[Context The canvas element has no drawing abilities of its own. A canvas is a rectangular area, where you can control every pixel using JavaScript. HTML5 has a built-in object for the canvas element, the getContext(&#8220;2d&#8221;) object. The getContext(&#8220;2d&#8221;) object has methods to draw lines, boxes, circles, and more. Colors and Styles Attribute Value Description [...]]]></description>
			<content:encoded><![CDATA[<h2>Context</h2>
<p>The canvas element has no drawing abilities of its own.</p>
<p>A canvas is a rectangular area, where you can control every pixel using JavaScript.</p>
<p>HTML5 has a built-in object for the canvas element, the getContext(&#8220;2d&#8221;) object.</p>
<p>The getContext(&#8220;2d&#8221;) object has methods to draw lines, boxes, circles, and more.</p>
<hr />
<h2>Colors and Styles</h2>
<table>
<tbody>
<tr>
<th>Attribute</th>
<th>Value</th>
<th>Description</th>
</tr>
<tr>
<td>fillStyle</td>
<td><em>color</em>/<em>style</em></td>
<td>The fill-color of the drawing, black is default</td>
</tr>
<tr>
<td>strokeStyle</td>
<td><em>color</em>/<em>style</em></td>
<td>The stroke-color of the drawing, black is default</td>
</tr>
<tr>
<td>lineWidth</td>
<td><em>number</em></td>
<td>The width of the drawing stroke, 1 is default</td>
</tr>
<tr>
<td>lineCap</td>
<td>butt<br />
round<br />
square</td>
<td>The style of the ending of the line, butt is default</td>
</tr>
<tr>
<td>lineJoin</td>
<td>bevel<br />
round<br />
miter</td>
<td>The style of the corners of the line, miter is default</td>
</tr>
<tr>
<td>miterLimit</td>
<td><em>number</em></td>
<td>The limit size of the corners in a line, default is 10</td>
</tr>
<tr>
<td>shadowColor</td>
<td><em>color</em></td>
<td>The color of the shadow, black is default</td>
</tr>
<tr>
<td>shadowOffsetX</td>
<td><em>number</em></td>
<td>The horizontal distance of the shadow, 0 is default</td>
</tr>
<tr>
<td>shadowOffsetY</td>
<td><em>number</em></td>
<td>The vertical distance of the shadow, 0 is default</td>
</tr>
<tr>
<td>shadowBlur</td>
<td><em>number</em></td>
<td>The size of the blurring effect, 0 is default</td>
</tr>
<tr>
<th colspan="2">Method</th>
<th>Description</th>
</tr>
<tr>
<td colspan="2">createPattern(<em>obj,pattern</em>)</td>
<td>Creates a pattern from an image to be used by the fillStyle or strokeStyle attributes</td>
</tr>
<tr>
<td colspan="2">createLinearGradient(<em>x0,y0,z1,y1</em>)</td>
<td>Creates a gradient object. Use this object as a value to the strokeStyle or fillStyle attributes</td>
</tr>
<tr>
<td colspan="2">createRadialGradient(<em>x0,y0,r0,x1,y1,r1</em>)</td>
<td>Creates a gradient object as a circle. Use this object as a value to the strokeStyle or fillStyle attributes</td>
</tr>
<tr>
<td colspan="2">addColorStop(<em>position,color</em>)</td>
<td>This is a method of the gradient objects above. Specifies the gradient&#8217;s position and color</td>
</tr>
<tr>
<td colspan="2">drawCustomFocusRing(element)</td>
<td></td>
</tr>
<tr>
<td colspan="2">drawSystemFocusRing(element)</td>
<td></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Path, Curve, Circle, and Rectangle</h2>
<table>
<tbody>
<tr>
<th>Method</th>
<th>Description</th>
</tr>
<tr>
<td>fillRect(<em>x,y,w,h</em>)</td>
<td>Draws a filled rectangle using the color/style of the fillStyle attribute</td>
</tr>
<tr>
<td>strokeRect(<em>x,y,w,h</em>)</td>
<td>Draws the lines of a rectangle using the color/style of the strokeStyle attribute</td>
</tr>
<tr>
<td>clearRect(<em>x,y,w,h</em>)</td>
<td>Clears a rectangle area. All pixels inside this area will be erased</td>
</tr>
<tr>
<td>beginPath()</td>
<td>Starts a new path, or clears the current path</td>
</tr>
<tr>
<td>moveTo(<em>x,y</em>)</td>
<td>Moves the path to the specified point, without creating a line</td>
</tr>
<tr>
<td>closePath()</td>
<td>Creates a line (path) from the last point in the path, to the first point. Completes the path</td>
</tr>
<tr>
<td>lineTo(<em>x,y</em>)</td>
<td>Creates a line from the last point in the path to the given point</td>
</tr>
<tr>
<td>rect(<em>x,y,w,h</em>)</td>
<td>Creates a rectangle</td>
</tr>
<tr>
<td>fill()</td>
<td>Fills the current path with the selected color, black is default</td>
</tr>
<tr>
<td>stroke()</td>
<td>Creates a stroke/path described with the specified path methods</td>
</tr>
<tr>
<td>clip()</td>
<td>Creates an area in the canvas, and this area is the only visible area in the canvas</td>
</tr>
<tr>
<td>quadraticCurveTo(<em>cpx,cpy,x,y</em>)</td>
<td>Creates a quadratic Bwzier curve from the current point in the path to the specified path</td>
</tr>
<tr>
<td>bezierCurveTo(<em>cpx,cpy,cpx,cpy,x,y</em>)</td>
<td>Creates a cubic Bezier curve from the current point in the path to the specified path</td>
</tr>
<tr>
<td>arc(<em>x,y,r,sAngle,eAngle,aClockwise</em>)</td>
<td>Creates a circle, or parts of a circle</td>
</tr>
<tr>
<td>arcTo(<em>x1,y1,x2,y2,radius</em>)</td>
<td>Creates an arc between two points</td>
</tr>
<tr>
<td>isPointInPath(<em>x,y</em>)</td>
<td>Returns a Boolean value, true if the specified point is in the path, otherwise false</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Transformations</h2>
<table>
<tbody>
<tr>
<th>Method</th>
<th>Description</th>
</tr>
<tr>
<td>scale(<em>x,y</em>)</td>
<td>Scales the drawings based on the x and y parameters</td>
</tr>
<tr>
<td>rotate(<em>angle</em>)</td>
<td>Rotates the drawings based on the given angle</td>
</tr>
<tr>
<td>translate(<em>x,y</em>)</td>
<td>Moves the drawings horizontally and vertically</td>
</tr>
<tr>
<td>transform(<em>a,b,c,d,e,f</em>)</td>
<td>Changes the shape of the drawings based on a matrix</td>
</tr>
<tr>
<td>setTransform(<em>a,b,c,d,e,f</em>)</td>
<td>Clears the current transformation, then makes the changes of the drawings based on a matrix</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Text</h2>
<table>
<tbody>
<tr>
<th>Attribute</th>
<th>Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>font</td>
<td><em>fontproperties</em></td>
<td>Specifies font properties used for writing on the canvas</td>
</tr>
<tr>
<td>textAlign</td>
<td>start<br />
end<br />
left<br />
right<br />
center</td>
<td>The alignment of the text, &#8220;start&#8221; is default</td>
</tr>
<tr>
<td>textBaseline</td>
<td>alphabetic<br />
bottom<br />
hanging<br />
ideographic<br />
middle<br />
top</td>
<td>The vertical alignment of the text, &#8220;alphabetic&#8221; is default</td>
</tr>
<tr>
<th colspan="2" align="left">Method</th>
<th align="left">Description</th>
</tr>
<tr>
<td colspan="2">fillText(<em>text,x,y,maxWidth</em>)</td>
<td>Draws text on the canvas, and fills it with the color set by the fillStyle attribute</td>
</tr>
<tr>
<td colspan="2">strokeText(<em>text,x,y,maxWidth</em>)</td>
<td>Draws text on the canvas, without filling, using the color set by the strokeStyle attribute.</td>
</tr>
<tr>
<td colspan="2">measureText(<em>text</em>).width</td>
<td>Measures the given text string, returns the result in pixels</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Images and Pixel Manipulation</h2>
<table>
<tbody>
<tr>
<th>Attribute</th>
<th>Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>width</td>
<td><em>number</em></td>
<td>Specifies the width of the imagedata object</td>
</tr>
<tr>
<td>height</td>
<td><em>number</em></td>
<td>Specifies the height of the imagedata object</td>
</tr>
<tr>
<td>data</td>
<td><em>array</em></td>
<td>An array containing the rgba values of all pixels in an imagedata object</td>
</tr>
<tr>
<th colspan="2" align="left">Method</th>
<th align="left">Description</th>
</tr>
<tr>
<td colspan="2">drawImage()</td>
<td>Use a picture when drawing onto the canvas</td>
</tr>
<tr>
<td colspan="2">createImageData()</td>
<td>Creates a blank imagedata object</td>
</tr>
<tr>
<td colspan="2">getImageData(x,y,w,h)</td>
<td>Creates a new imagedata object, containing data from the canvas</td>
</tr>
<tr>
<td colspan="2">putImageData(imgdat,dx,dy,x,y,w,h)</td>
<td>Draws imagedata onto th canvas</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Compositing</h2>
<table>
<tbody>
<tr>
<th>Attribute</th>
<th>Value</th>
<th align="left">Description</th>
</tr>
<tr>
<td>globalAlpha</td>
<td><em>number</em></td>
<td>Specifies the transparency of the drawings</td>
</tr>
<tr>
<td colspan="2">globalCompositeOperation</p>
<div>source-atop<br />
source-in<br />
source-out<br />
source-over<br />
destination-atop<br />
destination-in<br />
destination-out<br />
destination-over<br />
lighter<br />
copy<br />
xor<br />
vendorName-operationName</div>
</td>
<td>Specifies how shapes and drawings are positioned onto the canvas, source-over is default</td>
</tr>
</tbody>
</table>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;bodytext=Context%0D%0AThe%20canvas%20element%20has%20no%20drawing%20abilities%20of%20its%20own.%0D%0A%0D%0AA%20canvas%20is%20a%20rectangular%20area%2C%20where%20you%20can%20control%20every%20pixel%20using%20JavaScript.%0D%0A%0D%0AHTML5%20has%20a%20built-in%20object%20for%20the%20canvas%20element%2C%20the%20getContext%28%222d%22%29%20object.%0D%0A%0D%0AThe%20getCont" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;notes=Context%0D%0AThe%20canvas%20element%20has%20no%20drawing%20abilities%20of%20its%20own.%0D%0A%0D%0AA%20canvas%20is%20a%20rectangular%20area%2C%20where%20you%20can%20control%20every%20pixel%20using%20JavaScript.%0D%0A%0D%0AHTML5%20has%20a%20built-in%20object%20for%20the%20canvas%20element%2C%20the%20getContext%28%222d%22%29%20object.%0D%0A%0D%0AThe%20getCont" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;t=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;annotation=Context%0D%0AThe%20canvas%20element%20has%20no%20drawing%20abilities%20of%20its%20own.%0D%0A%0D%0AA%20canvas%20is%20a%20rectangular%20area%2C%20where%20you%20can%20control%20every%20pixel%20using%20JavaScript.%0D%0A%0D%0AHTML5%20has%20a%20built-in%20object%20for%20the%20canvas%20element%2C%20the%20getContext%28%222d%22%29%20object.%0D%0A%0D%0AThe%20getCont" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;headline=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Context%0D%0AThe%20canvas%20element%20has%20no%20drawing%20abilities%20of%20its%20own.%0D%0A%0D%0AA%20canvas%20is%20a%20rectangular%20area%2C%20where%20you%20can%20control%20every%20pixel%20using%20JavaScript.%0D%0A%0D%0AHTML5%20has%20a%20built-in%20object%20for%20the%20canvas%20element%2C%20the%20getContext%28%222d%22%29%20object.%0D%0A%0D%0AThe%20getCont" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;bm_description=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;t=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;h=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;story_title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=HTML5%20canvas.getContext%28%222d%22%29%20reference%20-%20http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;submitHeadline=HTML5%20canvas.getContext%28%222d%22%29%20reference&amp;submitSummary=Context%0D%0AThe%20canvas%20element%20has%20no%20drawing%20abilities%20of%20its%20own.%0D%0A%0D%0AA%20canvas%20is%20a%20rectangular%20area%2C%20where%20you%20can%20control%20every%20pixel%20using%20JavaScript.%0D%0A%0D%0AHTML5%20has%20a%20built-in%20object%20for%20the%20canvas%20element%2C%20the%20getContext%28%222d%22%29%20object.%0D%0A%0D%0AThe%20getCont&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fhtml%2Fhtml5-canvas-getcontext2d-reference%2F&amp;title=HTML5%20canvas.getContext%28%222d%22%29%20reference" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/html/html5-canvas-getcontext2d-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Math Object</title>
		<link>http://www.w3updates.com/browser-scripting/java-script/javascript-math-object/</link>
		<comments>http://www.w3updates.com/browser-scripting/java-script/javascript-math-object/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:05:59 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Math Object]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1536</guid>
		<description><![CDATA[Complete Math Object Reference For a complete reference of all the properties and methods that can be used with the Math object, go to our complete Math object reference. The reference contains a brief description and examples of use for each property and method! Math Object The Math object allows you to perform mathematical tasks. The [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Math Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Math object, go to our complete Math object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>Math Object</h2>
<p>The Math object allows you to perform mathematical tasks.</p>
<p>The Math object includes several mathematical constants and methods.</p>
<p><strong>Syntax for using properties/methods of Math:</strong></p>
<div>
<div>var x=Math.PI;<br />
var y=Math.sqrt(16);</div>
</div>
<p><strong>Note:</strong> Math is not a constructor. All properties and methods of Math can be called by using Math as an object without creating it.</p>
<hr />
<h2>Mathematical Constants</h2>
<p>JavaScript provides eight mathematical constants that can be accessed from the Math object. These are: E, PI, square root of 2, square root of 1/2, natural log of 2, natural log of 10, base-2 log of E, and base-10 log of E.</p>
<p>You may reference these constants from your JavaScript like this:</p>
<div>
<div>Math.E<br />
Math.PI<br />
Math.SQRT2<br />
Math.SQRT1_2<br />
Math.LN2<br />
Math.LN10<br />
Math.LOG2E<br />
Math.LOG10E</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Mathematical Methods</h2>
<p>In addition to the mathematical constants that can be accessed from the Math object there are also several methods available.</p>
<p>The following example uses the round() method of the Math object to round a number to the nearest integer:</p>
<div>
<div>document.write(Math.round(4.7));</div>
</div>
<p>The code above will result in the following output:</p>
<div>
<div>5</div>
</div>
<p>The following example uses the random() method of the Math object to return a random number between 0 and 1:</p>
<div>
<div>document.write(Math.random());</div>
</div>
<p>The code above can result in the following output:</p>
<div>
<div>0.7069202205166221</div>
</div>
<p>The following example uses the floor() and random() methods of the Math object to return a random number between 0 and 10:</p>
<div>
<div>document.write(Math.floor(Math.random()*11));</div>
</div>
<p>The code above can result in the following output:</p>
<div>
<div>9</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object&amp;bodytext=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object&amp;notes=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;t=JavaScript%20Math%20Object" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object&amp;annotation=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Math%20Object&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;headline=JavaScript%20Math%20Object&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;bm_description=JavaScript%20Math%20Object&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;t=JavaScript%20Math%20Object" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Math%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;h=JavaScript%20Math%20Object" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Math%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;story_title=JavaScript%20Math%20Object" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Math%20Object%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;submitHeadline=JavaScript%20Math%20Object&amp;submitSummary=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/java-script/javascript-math-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Boolean Object</title>
		<link>http://www.w3updates.com/browser-scripting/java-script/javascript-boolean-object/</link>
		<comments>http://www.w3updates.com/browser-scripting/java-script/javascript-boolean-object/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:05:36 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Boolean Object]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1535</guid>
		<description><![CDATA[Complete Boolean Object Reference For a complete reference of all the properties and methods that can be used with the Boolean object, go to our complete Boolean object reference. The reference contains a brief description and examples of use for each property and method! Create a Boolean Object The Boolean object represents two values: &#8220;true&#8221; or [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Boolean Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Boolean object, go to our complete Boolean object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>Create a Boolean Object</h2>
<p>The Boolean object represents two values: &#8220;true&#8221; or &#8220;false&#8221;.</p>
<p>The following code creates a Boolean object called myBoolean:</p>
<div>
<div>var myBoolean=new Boolean();</div>
</div>
<p>If the Boolean object has no initial value, or if the passed value is one of the following:</p>
<ul>
<li>0</li>
<li>-0</li>
<li>null</li>
<li>&#8220;&#8221;</li>
<li>false</li>
<li>undefined</li>
<li>NaN</li>
</ul>
<p>the object it is set to false. For any other value it is set to true (even with the string &#8220;false&#8221;)!</p>
<div></div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object&amp;bodytext=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object&amp;notes=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;t=JavaScript%20Boolean%20Object" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object&amp;annotation=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Boolean%20Object&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;headline=JavaScript%20Boolean%20Object&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;bm_description=JavaScript%20Boolean%20Object&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;t=JavaScript%20Boolean%20Object" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Boolean%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;h=JavaScript%20Boolean%20Object" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Boolean%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;story_title=JavaScript%20Boolean%20Object" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Boolean%20Object%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;submitHeadline=JavaScript%20Boolean%20Object&amp;submitSummary=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/java-script/javascript-boolean-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Array Object</title>
		<link>http://www.w3updates.com/browser-scripting/java-script/javascript-array-object/</link>
		<comments>http://www.w3updates.com/browser-scripting/java-script/javascript-array-object/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:05:02 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Array Object]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1534</guid>
		<description><![CDATA[Complete Array Object Reference For a complete reference of all the properties and methods that can be used with the Array object, go to our complete Array object reference. The reference contains a brief description and examples of use for each property and method! What is an Array? An array is a special variable, which can [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Array Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Array object, go to our complete Array object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>What is an Array?</h2>
<p>An array is a special variable, which can hold more than one value, at a time.</p>
<p>If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this:</p>
<div>
<div>var car1=&#8221;Saab&#8221;;<br />
var car2=&#8221;Volvo&#8221;;<br />
var car3=&#8221;BMW&#8221;;</div>
</div>
<p>However, what if you want to loop through the cars and find a specific one? And what if you had not 3 cars, but 300?</p>
<p>The best solution here is to use an array!</p>
<p>An array can hold all your variable values under a single name. And you can access the values by referring to the array name.</p>
<p>Each element in the array has its own ID so that it can be easily accessed.</p>
<hr />
<h2>Create an Array</h2>
<p>An array can be defined in three ways.</p>
<p>The following code creates an Array object called myCars:</p>
<p>1:</p>
<div>
<div>var myCars=new Array(); // regular array (add an optional integer<br />
myCars[0]=&#8221;Saab&#8221;;       // argument to control array&#8217;s size)<br />
myCars[1]=&#8221;Volvo&#8221;;<br />
myCars[2]=&#8221;BMW&#8221;;</div>
</div>
<p>2:</p>
<div>
<div>var myCars=new Array(&#8220;Saab&#8221;,&#8221;Volvo&#8221;,&#8221;BMW&#8221;); // condensed array</div>
</div>
<p>3:</p>
<div>
<div>var myCars=["Saab","Volvo","BMW"]; // literal array</div>
</div>
<p><strong>Note:</strong> If you specify numbers or true/false values inside the array then the variable type will be Number or Boolean, instead of String.</p>
<hr />
<h2>Access an Array</h2>
<p>You can refer to a particular element in an array by referring to the name of the array and the index number. The index number starts at 0.</p>
<p>The following code line:</p>
<div>
<div>document.write(myCars[0]);</div>
</div>
<p>will result in the following output:</p>
<div>
<div>Saab</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Modify Values in an Array</h2>
<p>To modify a value in an existing array, just add a new value to the array with a specified index number:</p>
<div>
<div>myCars[0]=&#8221;Opel&#8221;;</div>
</div>
<p>Now, the following code line:</p>
<div>
<div>document.write(myCars[0]);</div>
</div>
<p>will result in the following output:</p>
<div>
<div>Opel</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object&amp;bodytext=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object&amp;notes=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;t=JavaScript%20Array%20Object" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object&amp;annotation=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Array%20Object&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;headline=JavaScript%20Array%20Object&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;bm_description=JavaScript%20Array%20Object&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;t=JavaScript%20Array%20Object" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Array%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;h=JavaScript%20Array%20Object" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Array%20Object&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;story_title=JavaScript%20Array%20Object" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Array%20Object%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;submitHeadline=JavaScript%20Array%20Object&amp;submitSummary=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fjava-script%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/java-script/javascript-array-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

