<?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>Classifieds Scripts, Web Scripts,  Ajax Scripts, PHP Scripts, ASP Scripts &#187; JavaScript</title>
	<atom:link href="http://www.scriptclassifieds.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptclassifieds.com</link>
	<description>AJAX, PHP Scripts, ASP Scripts, Ad Management, Bookmark Management, Database Tools, Chat Scripts, HTML Editors, Classified Ads Scripts, Classifieds Script</description>
	<lastBuildDate>Sat, 28 Jan 2012 09:35:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JavaScript RegExp Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-regexp-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-regexp-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:35:03 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[highly object oriented]]></category>
		<category><![CDATA[RegExp]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1151</guid>
		<description><![CDATA[RegExp, is short for regular expression. Complete RegExp Object Reference For a complete reference of all the properties and methods that can be used with the RegExp object, go to our complete RegExp object reference. The reference contains a brief description and examples of use for each property and method! What is RegExp? A regular expression [...]]]></description>
			<content:encoded><![CDATA[<p>RegExp, is short for regular expression.</p>
<hr />
<h2>Complete RegExp Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the RegExp object, go to our complete RegExp object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>What is RegExp?</h2>
<p>A regular expression is an object that describes a pattern of characters.</p>
<p>When you search in a text, you can use a pattern to describe what you are searching for.</p>
<p>A simple pattern can be one single character.</p>
<p>A more complicated pattern can consist of more characters, and can be used for parsing, format checking, substitution and more.</p>
<p>Regular expressions are used to perform powerful pattern-matching and &#8220;search-and-replace&#8221; functions on text.</p>
<h2>Syntax</h2>
<div>
<div>var patt=new RegExp(pattern,modifiers);</p>
<p>or more simply:</p>
<p>var patt=/pattern/modifiers;</p></div>
</div>
<ul>
<li>pattern specifies the pattern of an expression</li>
<li>modifiers specify if a search should be global, case-sensitive, etc.</li>
</ul>
<hr />
<h2>RegExp Modifiers</h2>
<p>Modifiers are used to perform case-insensitive and global searches.</p>
<p>The i modifier is used to perform case-insensitive matching.</p>
<p>The g modifier is used to perform a global match (find all matches rather than stopping after the first match).</p>
<div>
<h2>Example 1</h2>
<p>Do a case-insensitive search for &#8220;w3schools&#8221; in a string:</p>
<div>var str=&#8221;Visit W3Schools&#8221;;<br />
var patt1=/w3schools/i;</div>
<p>The marked text below shows where the expression gets a match:</p>
<div>Visit W3Schools</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<div>
<h2>Example 2</h2>
<p>Do a global search for &#8220;is&#8221;:</p>
<div>var str=&#8221;Is this all there is?&#8221;;<br />
var patt1=/is/g;</div>
<p>The marked text below shows where the expression gets a match:</p>
<div>Is this all there is?</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<div>
<h2>Example 3</h2>
<p>Do a global, case-insensitive search for &#8220;is&#8221;:</p>
<div>var str=&#8221;Is this all there is?&#8221;;<br />
var patt1=/is/gi;</div>
<p>The marked text below shows where the expression gets a match:</p>
<div>Is this all there is?</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>test()</h2>
<p>The test() method searches a string for a specified value, and returns true or false, depending on the result.</p>
<p>The following example searches a string for the character &#8220;e&#8221;:</p>
<div>
<h2>Example</h2>
<div>var patt1=new RegExp(&#8220;e&#8221;);<br />
document.write(patt1.test(&#8220;The best things in life are free&#8221;));</div>
<p>Since there is an &#8220;e&#8221; in the string, the output of the code above will be:</p>
<div>true</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>exec()</h2>
<p>The exec() method searches a string for a specified value, and returns the text of the found value. If no match is found, it returns <em>null.</em></p>
<p>The following example searches a string for the character &#8220;e&#8221;:</p>
<div>
<h2>Example 1</h2>
<div>var patt1=new RegExp(&#8220;e&#8221;);<br />
document.write(patt1.exec(&#8220;The best things in life are free&#8221;));</div>
<p>Since there is an &#8220;e&#8221; in the string, the output of the code above will be:</p>
<div>e</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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;bodytext=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;notes=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="del.icio.us"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;t=JavaScript%20RegExp%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;annotation=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20RegExp%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;headline=JavaScript%20RegExp%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;bm_description=JavaScript%20RegExp%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;t=JavaScript%20RegExp%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20RegExp%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;h=JavaScript%20RegExp%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20RegExp%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;story_title=JavaScript%20RegExp%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20RegExp%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;submitHeadline=JavaScript%20RegExp%20Object%20%20&amp;submitSummary=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-regexp-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Math Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-math-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-math-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:34:38 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1150</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.14280927344225347</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>8</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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;t=JavaScript%20Math%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&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.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;headline=JavaScript%20Math%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;bm_description=JavaScript%20Math%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;t=JavaScript%20Math%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;h=JavaScript%20Math%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;story_title=JavaScript%20Math%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;submitHeadline=JavaScript%20Math%20Object%20%20&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.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-math-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Boolean Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-boolean-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-boolean-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:34:18 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Boolean]]></category>
		<category><![CDATA[Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1149</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 is set to false. For any other value it is set to true (even with the string &#8220;false&#8221;)!</p>
<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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;t=JavaScript%20Boolean%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&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.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;headline=JavaScript%20Boolean%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;bm_description=JavaScript%20Boolean%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;t=JavaScript%20Boolean%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;h=JavaScript%20Boolean%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;story_title=JavaScript%20Boolean%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;submitHeadline=JavaScript%20Boolean%20Object%20%20&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.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-boolean-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Array Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-array-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-array-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:33:52 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Array Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1148</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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;t=JavaScript%20Array%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&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.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;headline=JavaScript%20Array%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;bm_description=JavaScript%20Array%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;t=JavaScript%20Array%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;h=JavaScript%20Array%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;story_title=JavaScript%20Array%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;submitHeadline=JavaScript%20Array%20Object%20%20&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.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-array-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Date Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-date-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-date-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:33:20 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Date Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1147</guid>
		<description><![CDATA[Complete Date Object Reference For a complete reference of all the properties and methods that can be used with the Date object, go to our complete Date object reference. The reference contains a brief description and examples of use for each property and method! Create a Date Object The Date object is used to work with [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Date Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Date object, go to our complete Date object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>Create a Date Object</h2>
<p>The Date object is used to work with dates and times.</p>
<p>Date objects are created with the Date() constructor.</p>
<p>There are four ways of instantiating a date:</p>
<div>
<div>new Date() // current date and time<br />
new Date(milliseconds) //milliseconds since 1970/01/01<br />
new Date(dateString)<br />
new Date(year, month, day, hours, minutes, seconds, milliseconds)</div>
</div>
<p>Most parameters above are optional. Not specifying, causes 0 to be passed in.</p>
<p>Once a Date object is created, a number of methods allow you to operate on it. Most methods allow you to get and set the year, month, day, hour, minute, second, and milliseconds of the object, using either local time or UTC (universal, or GMT) time.</p>
<p>All dates are calculated in milliseconds from 01 January, 1970 00:00:00 Universal Time (UTC) with a day containing 86,400,000 milliseconds.</p>
<p>Some examples of instantiating a date:</p>
<div>
<div>var today = new Date()<br />
var d1 = new Date(&#8220;October 13, 1975 11:13:00&#8243;)<br />
var d2 = new Date(79,5,24)<br />
var d3 = new Date(79,5,24,11,33,0)</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Set Dates</h2>
<p>We can easily manipulate the date by using the methods available for the Date object.</p>
<p>In the example below we set a Date object to a specific date (14th January 2010):</p>
<div>
<div>var myDate=new Date();<br />
myDate.setFullYear(2010,0,14);</div>
</div>
<p>And in the following example we set a Date object to be 5 days into the future:</p>
<div>
<div>var myDate=new Date();<br />
myDate.setDate(myDate.getDate()+5);</div>
</div>
<p><strong>Note:</strong> If adding five days to a date shifts the month or year, the changes are handled automatically by the Date object itself!</p>
<hr />
<h2>Compare Two Dates</h2>
<p>The Date object is also used to compare two dates.</p>
<p>The following example compares today&#8217;s date with the 14th January 2100:</p>
<div>
<div>var x=new Date();<br />
x.setFullYear(2100,0,14);<br />
var today = new Date();</p>
<p>if (x&gt;today)<br />
{<br />
alert(&#8220;Today is before 14th January 2100&#8243;);<br />
}<br />
else<br />
{<br />
alert(&#8220;Today is after 14th January 2100&#8243;);<br />
}</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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;bodytext=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;notes=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%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.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;t=JavaScript%20Date%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;annotation=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%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.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20Date%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;headline=JavaScript%20Date%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;bm_description=JavaScript%20Date%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;t=JavaScript%20Date%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20Date%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;h=JavaScript%20Date%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20Date%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;story_title=JavaScript%20Date%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20Date%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;submitHeadline=JavaScript%20Date%20Object%20%20&amp;submitSummary=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%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.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-date-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript String Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-string-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-string-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:32:49 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1146</guid>
		<description><![CDATA[Complete String Object Reference For a complete reference of all the properties and methods that can be used with the String object, go to our complete String object reference. The reference contains a brief description and examples of use for each property and method! String object The String object is used to manipulate a stored piece [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete String Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the String object, go to our complete String object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>String object</h2>
<p>The String object is used to manipulate a stored piece of text.</p>
<p><strong>Examples of use:</strong></p>
<p>The following example uses the length property of the String object to find the length of a string:</p>
<div>
<div>var txt=&#8221;Hello world!&#8221;;<br />
document.write(txt.length);</div>
</div>
<p>The code above will result in the following output:</p>
<div>
<div>12</div>
</div>
<p>The following example uses the toUpperCase() method of the String object to convert a string to uppercase letters:</p>
<div>
<div>var txt=&#8221;Hello world!&#8221;;<br />
document.write(txt.toUpperCase());</div>
</div>
<p>The code above will result in the following output:</p>
<div>
<div>HELLO WORLD!</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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;bodytext=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;notes=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="del.icio.us"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;t=JavaScript%20String%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;annotation=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20String%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;headline=JavaScript%20String%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;bm_description=JavaScript%20String%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;t=JavaScript%20String%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20String%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;h=JavaScript%20String%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20String%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;story_title=JavaScript%20String%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20String%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;submitHeadline=JavaScript%20String%20Object%20%20&amp;submitSummary=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-string-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Objects Introduction</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-objects-introduction/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-objects-introduction/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:32:23 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Objects]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1145</guid>
		<description><![CDATA[JavaScript is an Object Based Programming language. An Object Based Programming language allows you to define your own objects and make your own variable types. Object Based Programming JavaScript is an Object Based Programming language, and allows you to define your own objects and make your own variable types. However, creating your own objects will [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript is an Object Based Programming language.</p>
<p>An Object Based Programming language allows you to define your own objects and make your own variable types.</p>
<hr />
<h2>Object Based Programming</h2>
<p>JavaScript is an Object Based Programming language, and allows you to define your own objects and make your own variable types.</p>
<p>However, creating your own objects will be explained later, in the Advanced JavaScript section. We will start by looking at the built-in JavaScript objects, and how they are used. The next pages will explain each built-in JavaScript object in detail.</p>
<p>Note that an object is just a special kind of data. An object has properties and methods.</p>
<hr />
<h2>Properties</h2>
<p>Properties are the values associated with an object.</p>
<p>In the following example we are using the length property of the String object to return the number of characters in a string:</p>
<div>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var txt=&#8221;Hello World!&#8221;;<br />
document.write(txt.length);<br />
&lt;/script&gt;</div>
</div>
<p>The output of the code above will be:</p>
<div>
<div>12</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Methods</h2>
<p>Methods are the actions that can be performed on objects.</p>
<p>In the following example we are using the toUpperCase() method of the String object to display a text in uppercase letters:</p>
<div>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var str=&#8221;Hello world!&#8221;;<br />
document.write(str.toUpperCase());<br />
&lt;/script&gt;</div>
</div>
<p>The output of the code above will be:</p>
<div>
<div>HELLO WORLD!</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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;bodytext=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;notes=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="del.icio.us"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;t=JavaScript%20Objects%20Introduction%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;annotation=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20Objects%20Introduction%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;headline=JavaScript%20Objects%20Introduction%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;bm_description=JavaScript%20Objects%20Introduction%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;t=JavaScript%20Objects%20Introduction%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20Objects%20Introduction%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;h=JavaScript%20Objects%20Introduction%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20Objects%20Introduction%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;story_title=JavaScript%20Objects%20Introduction%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20Objects%20Introduction%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;submitHeadline=JavaScript%20Objects%20Introduction%20%20&amp;submitSummary=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-objects-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Create Your Own Objects</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects-2/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects-2/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:31:54 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Objects]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1152</guid>
		<description><![CDATA[JavaScript Objects Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own. An object is just a special kind of data, with a collection of properties and methods. Let&#8217;s illustrate with an example: A [...]]]></description>
			<content:encoded><![CDATA[<h2>JavaScript Objects</h2>
<p>Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own.</p>
<p>An object is just a special kind of data, with a collection of properties and methods.</p>
<p>Let&#8217;s illustrate with an example: A person is an object. Properties are the values associated with the object. The persons&#8217; properties include name, height, weight, age, skin tone, eye color, etc. All persons have these properties, but the values of those properties will differ from person to person. Objects also have methods. Methods are the actions that can be performed on objects. The persons&#8217; methods could be eat(), sleep(), work(), play(), etc.</p>
<h3>Properties</h3>
<p>The syntax for accessing a property of an object is:</p>
<div>
<div>objName.propName</div>
</div>
<p>You can add properties to an object by simply giving it a value. Assume that the personObj already exists &#8211; you can give it properties named firstname, lastname, age, and eyecolor as follows:</p>
<div>
<div>personObj.firstname=&#8221;John&#8221;;<br />
personObj.lastname=&#8221;Doe&#8221;;<br />
personObj.age=30;<br />
personObj.eyecolor=&#8221;blue&#8221;;</p>
<p>document.write(personObj.firstname);</p></div>
</div>
<p>The code above will generate the following output:</p>
<div>
<div>John</div>
</div>
<h3>Methods</h3>
<p>An object can also contain methods.</p>
<p>You can call a method with the following syntax:</p>
<div>
<div>objName.methodName()</div>
</div>
<p><strong>Note:</strong> Parameters required for the method can be passed between the parentheses.</p>
<p>To call a method called sleep() for the personObj:</p>
<div>
<div>personObj.sleep();</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Creating Your Own Objects</h2>
<p>There are different ways to create a new object:</p>
<p><strong>1. Create a direct instance of an object</strong></p>
<p>The following code creates a new instance of an object, and adds four properties to it:</p>
<div>
<div>personObj=new Object();<br />
personObj.firstname=&#8221;John&#8221;;<br />
personObj.lastname=&#8221;Doe&#8221;;<br />
personObj.age=50;<br />
personObj.eyecolor=&#8221;blue&#8221;;</div>
</div>
<p>alternative syntax (using object literals):</p>
<div>
<div>personObj={firstname:&#8221;John&#8221;,lastname:&#8221;Doe&#8221;,age:50,eyecolor:&#8221;blue&#8221;};</div>
</div>
<p>Adding a method to the personObj is also simple. The following code adds a method called eat() to the personObj:</p>
<div>
<div>personObj.eat=eat;</div>
</div>
<p><strong>2. Create an object constructor</strong></p>
<p>Create a function that construct objects:</p>
<div>
<div>function person(firstname,lastname,age,eyecolor)<br />
{<br />
this.firstname=firstname;<br />
this.lastname=lastname;<br />
this.age=age;<br />
this.eyecolor=eyecolor;<br />
}</div>
</div>
<p>Inside the function you need to assign things to this.propertyName. The reason for all the &#8220;this&#8221; stuff is that you&#8217;re going to have more than one person at a time (which person you&#8217;re dealing with must be clear). That&#8217;s what &#8220;this&#8221; is: the instance of the object at hand.</p>
<p>Once you have the object constructor, you can create new instances of the object, like this:</p>
<div>
<div>var myFather=new person(&#8220;John&#8221;,&#8221;Doe&#8221;,50,&#8221;blue&#8221;);<br />
var myMother=new person(&#8220;Sally&#8221;,&#8221;Rally&#8221;,48,&#8221;green&#8221;);</div>
</div>
<p>You can also add some methods to the person object. This is also done inside the function:</p>
<div>
<div>function person(firstname,lastname,age,eyecolor)<br />
{<br />
this.firstname=firstname;<br />
this.lastname=lastname;<br />
this.age=age;<br />
this.eyecolor=eyecolor;</p>
<p>this.newlastname=newlastname;<br />
}</p></div>
</div>
<p>Note that methods are just functions attached to objects. Then we will have to write the newlastname() function:</p>
<div>
<div>function newlastname(new_lastname)<br />
{<br />
this.lastname=new_lastname;<br />
}</div>
</div>
<p>The newlastname() function defines the person&#8217;s new last name and assigns that to the person. JavaScript knows which person you&#8217;re talking about by using &#8220;this.&#8221;. So, now you can write: myMother.newlastname(&#8220;Doe&#8221;).</p>
<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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;bodytext=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;notes=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="del.icio.us"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;t=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;annotation=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20Create%20Your%20Own%20Objects%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;headline=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;bm_description=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;t=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20Create%20Your%20Own%20Objects%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;h=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20Create%20Your%20Own%20Objects%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;story_title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20Create%20Your%20Own%20Objects%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;submitHeadline=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;submitSummary=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Form Validation</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-form-validation/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-form-validation/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 13:30:41 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JavaScript Form Validation]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1118</guid>
		<description><![CDATA[JavaScript Form Validation JavaScript can be used to validate data in HTML forms before sending off the content to a server. Form data that typically are checked by a JavaScript could be: has the user left required fields empty? has the user entered a valid e-mail address? has the user entered a valid date? has [...]]]></description>
			<content:encoded><![CDATA[<h2>JavaScript Form Validation</h2>
<p>JavaScript can be used to validate data in HTML forms before sending off the content to a server.</p>
<p>Form data that typically are checked by a JavaScript could be:</p>
<ul>
<li>has the user left required fields empty?</li>
<li>has the user entered a valid e-mail address?</li>
<li>has the user entered a valid date?</li>
<li>has the user entered text in a numeric field?</li>
</ul>
<hr />
<h2>Required Fields</h2>
<p>The function below checks if a field has been left empty. If the field is blank, an alert box alerts a message, the function returns false, and the form will not be submitted:</p>
<div>
<div>function validateForm()<br />
{<br />
var x=document.forms["myForm"]["fname"].value;<br />
if (x==null || x==&#8221;")<br />
{<br />
alert(&#8220;First name must be filled out&#8221;);<br />
return false;<br />
}<br />
}</div>
</div>
<p>The function above could be called when a form is submitted:</p>
<div>
<h2>Example</h2>
<div>&lt;form name=&#8221;myForm&#8221; action=&#8221;demo_form.asp&#8221; onsubmit=&#8221;return validateForm()&#8221; method=&#8221;post&#8221;&gt;<br />
First name: &lt;input type=&#8221;text&#8221; name=&#8221;fname&#8221;&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221;&gt;<br />
&lt;/form&gt;</div>
<p><a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_form_validation" target="_blank">Try it yourself »</a></div>
<p>&nbsp;</p>
<hr />
<h2>E-mail Validation</h2>
<p>The function below checks if the content has the general syntax of an email.</p>
<p>This means that the input data must contain an @ sign and at least one dot (.). Also, the @ must not be the first character of the email address, and the last dot must be present after the @ sign, and minimum 2 characters before the end:</p>
<div>
<div>function validateForm()<br />
{<br />
var x=document.forms["myForm"]["email"].value;<br />
var atpos=x.indexOf(&#8220;@&#8221;);<br />
var dotpos=x.lastIndexOf(&#8220;.&#8221;);<br />
if (atpos&lt;1 || dotpos&lt;atpos+2 || dotpos+2&gt;=x.length)<br />
{<br />
alert(&#8220;Not a valid e-mail address&#8221;);<br />
return false;<br />
}<br />
}</div>
</div>
<p>The function above could be called when a form is submitted:</p>
<div>
<h2>Example</h2>
<div>&lt;form name=&#8221;myForm&#8221; action=&#8221;demo_form.asp&#8221; onsubmit=&#8221;return validateForm();&#8221; method=&#8221;post&#8221;&gt;<br />
Email: &lt;input type=&#8221;text&#8221; name=&#8221;email&#8221;&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221;&gt;<br />
&lt;/form&gt;</div>
</div>
<div>
<a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_form_validate_email" target="_blank">Try it yourself »</a></div>
<div></div>
<div>source from: <a href="http://www.w3schools.com/">w3schools</a></div>
<p>&nbsp;</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20&amp;bodytext=JavaScript%20Form%20Validation%0D%0AJavaScript%20can%20be%20used%20to%20validate%20data%20in%20HTML%20forms%20before%20sending%20off%20the%20content%20to%20a%20server.%0D%0A%0D%0AForm%20data%20that%20typically%20are%20checked%20by%20a%20JavaScript%20could%20be%3A%0D%0A%0D%0A%09has%20the%20user%20left%20required%20fields%20empty%3F%0D%0A%09has%20the%20use" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20&amp;notes=JavaScript%20Form%20Validation%0D%0AJavaScript%20can%20be%20used%20to%20validate%20data%20in%20HTML%20forms%20before%20sending%20off%20the%20content%20to%20a%20server.%0D%0A%0D%0AForm%20data%20that%20typically%20are%20checked%20by%20a%20JavaScript%20could%20be%3A%0D%0A%0D%0A%09has%20the%20user%20left%20required%20fields%20empty%3F%0D%0A%09has%20the%20use" title="del.icio.us"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;t=JavaScript%20Form%20Validation%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20&amp;annotation=JavaScript%20Form%20Validation%0D%0AJavaScript%20can%20be%20used%20to%20validate%20data%20in%20HTML%20forms%20before%20sending%20off%20the%20content%20to%20a%20server.%0D%0A%0D%0AForm%20data%20that%20typically%20are%20checked%20by%20a%20JavaScript%20could%20be%3A%0D%0A%0D%0A%09has%20the%20user%20left%20required%20fields%20empty%3F%0D%0A%09has%20the%20use" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20Form%20Validation%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;headline=JavaScript%20Form%20Validation%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=JavaScript%20Form%20Validation%0D%0AJavaScript%20can%20be%20used%20to%20validate%20data%20in%20HTML%20forms%20before%20sending%20off%20the%20content%20to%20a%20server.%0D%0A%0D%0AForm%20data%20that%20typically%20are%20checked%20by%20a%20JavaScript%20could%20be%3A%0D%0A%0D%0A%09has%20the%20user%20left%20required%20fields%20empty%3F%0D%0A%09has%20the%20use" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;bm_description=JavaScript%20Form%20Validation%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;t=JavaScript%20Form%20Validation%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20Form%20Validation%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;h=JavaScript%20Form%20Validation%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20Form%20Validation%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;story_title=JavaScript%20Form%20Validation%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;title=JavaScript%20Form%20Validation%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20Form%20Validation%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-form-validation%2F&amp;submitHeadline=JavaScript%20Form%20Validation%20%20&amp;submitSummary=JavaScript%20Form%20Validation%0D%0AJavaScript%20can%20be%20used%20to%20validate%20data%20in%20HTML%20forms%20before%20sending%20off%20the%20content%20to%20a%20server.%0D%0A%0D%0AForm%20data%20that%20typically%20are%20checked%20by%20a%20JavaScript%20could%20be%3A%0D%0A%0D%0A%09has%20the%20user%20left%20required%20fields%20empty%3F%0D%0A%09has%20the%20use&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-form-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Cookies</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-cookies/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-cookies/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 13:30:19 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JavaScript Cookies]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1117</guid>
		<description><![CDATA[A cookie is often used to identify a user. What is a Cookie? A cookie is a variable that is stored on the visitor&#8217;s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With JavaScript, you can both create and retrieve cookie values. Examples of cookies: [...]]]></description>
			<content:encoded><![CDATA[<p>A cookie is often used to identify a user.</p>
<hr />
<h2>What is a Cookie?</h2>
<p>A cookie is a variable that is stored on the visitor&#8217;s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With JavaScript, you can both create and retrieve cookie values.</p>
<p>Examples of cookies:</p>
<ul>
<li>Name cookie &#8211; The first time a visitor arrives to your web page, he or she must fill in her/his name. The name is then stored in a cookie. Next time the visitor arrives at your page, he or she could get a welcome message like &#8220;Welcome John Doe!&#8221; The name is retrieved from the stored cookie</li>
<li>Password cookie &#8211; The first time a visitor arrives to your web page, he or she must fill in a password. The password is then stored in a cookie. Next time the visitor arrives at your page, the password is retrieved from the cookie</li>
<li>Date cookie &#8211; The first time a visitor arrives to your web page, the current date is stored in a cookie. Next time the visitor arrives at your page, he or she could get a message like &#8220;Your last visit was on Tuesday August 11, 2005!&#8221; The date is retrieved from the stored cookie</li>
</ul>
<hr />
<h2>Create and Store a Cookie</h2>
<p>In this example we will create a cookie that stores the name of a visitor. The first time a visitor arrives to the web page, he or she will be asked to  fill in her/his name. The name is then stored in a cookie. The next time the visitor arrives at the same page, he or she will get welcome message.</p>
<p>First, we create a function that stores the name of the visitor in a cookie variable:</p>
<div>
<div>function setCookie(c_name,value,exdays)<br />
{<br />
var exdate=new Date();<br />
exdate.setDate(exdate.getDate() + exdays);<br />
var c_value=escape(value) + ((exdays==null) ? &#8220;&#8221; : &#8220;; expires=&#8221;+exdate.toUTCString());<br />
document.cookie=c_name + &#8220;=&#8221; + c_value;<br />
}</div>
</div>
<p>The parameters of the function above hold the name of the cookie, the value of the cookie, and the number of days until the cookie expires.</p>
<p>In the function above we first convert the number of days to a valid date, then we add the number of days until the cookie should expire. After that we store the cookie name, cookie value and the expiration date in the document.cookie object.</p>
<p>Then, we create another function that returns a specified cookie:</p>
<div>
<div>function getCookie(c_name)<br />
{<br />
var i,x,y,ARRcookies=document.cookie.split(&#8220;;&#8221;);<br />
for (i=0;i&lt;ARRcookies.length;i++)<br />
{<br />
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf(&#8220;=&#8221;));<br />
y=ARRcookies[i].substr(ARRcookies[i].indexOf(&#8220;=&#8221;)+1);<br />
x=x.replace(/^\s+|\s+$/g,&#8221;");<br />
if (x==c_name)<br />
{<br />
return unescape(y);<br />
}<br />
}<br />
}</div>
</div>
<p>The function above makes an array to retrieve cookie names and values, then it checks if the specified cookie exists, and returns the cookie value.</p>
<p>Last, we create the function that displays a welcome message if the cookie is set, and if the cookie is not set it will display a prompt box, asking for the name of the user, and stores the username cookie for 365 days, by calling the setCookie function:</p>
<div>
<div>function checkCookie()<br />
{<br />
var username=getCookie(&#8220;username&#8221;);<br />
if (username!=null &amp;&amp; username!=&#8221;")<br />
{<br />
alert(&#8220;Welcome again &#8221; + username);<br />
}<br />
else<br />
{<br />
username=prompt(&#8220;Please enter your name:&#8221;,&#8221;");<br />
if (username!=null &amp;&amp; username!=&#8221;")<br />
{<br />
setCookie(&#8220;username&#8221;,username,365);<br />
}<br />
}<br />
}</div>
</div>
<p>All together now:</p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function getCookie(c_name)<br />
{<br />
var i,x,y,ARRcookies=document.cookie.split(&#8220;;&#8221;);<br />
for (i=0;i&lt;ARRcookies.length;i++)<br />
{<br />
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf(&#8220;=&#8221;));<br />
y=ARRcookies[i].substr(ARRcookies[i].indexOf(&#8220;=&#8221;)+1);<br />
x=x.replace(/^\s+|\s+$/g,&#8221;");<br />
if (x==c_name)<br />
{<br />
return unescape(y);<br />
}<br />
}<br />
}</p>
<p>function setCookie(c_name,value,exdays)<br />
{<br />
var exdate=new Date();<br />
exdate.setDate(exdate.getDate() + exdays);<br />
var c_value=escape(value) + ((exdays==null) ? &#8220;&#8221; : &#8220;; expires=&#8221;+exdate.toUTCString());<br />
document.cookie=c_name + &#8220;=&#8221; + c_value;<br />
}</p>
<p>function checkCookie()<br />
{<br />
var username=getCookie(&#8220;username&#8221;);<br />
if (username!=null &amp;&amp; username!=&#8221;")<br />
{<br />
alert(&#8220;Welcome again &#8221; + username);<br />
}<br />
else<br />
{<br />
username=prompt(&#8220;Please enter your name:&#8221;,&#8221;");<br />
if (username!=null &amp;&amp; username!=&#8221;")<br />
{<br />
setCookie(&#8220;username&#8221;,username,365);<br />
}<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body onload=&#8221;checkCookie()&#8221;&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<p><a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_cookie_username" target="_blank">Try it yourself »</a></div>
<p>The example above runs the checkCookie() function when the page loads.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>
<p>&nbsp;</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20&amp;bodytext=A%20cookie%20is%20often%20used%20to%20identify%20a%20user.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20is%20a%20Cookie%3F%0D%0AA%20cookie%20is%20a%20variable%20that%20is%20stored%20on%20the%20visitor%27s%20computer.%20Each%20time%20the%20same%20computer%20requests%20a%20page%20with%20a%20browser%2C%20it%20will%20send%20the%20cookie%20too.%20With%20JavaScript%2C%20you%20can%20bo" title="Digg"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Sphinn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20&amp;notes=A%20cookie%20is%20often%20used%20to%20identify%20a%20user.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20is%20a%20Cookie%3F%0D%0AA%20cookie%20is%20a%20variable%20that%20is%20stored%20on%20the%20visitor%27s%20computer.%20Each%20time%20the%20same%20computer%20requests%20a%20page%20with%20a%20browser%2C%20it%20will%20send%20the%20cookie%20too.%20With%20JavaScript%2C%20you%20can%20bo" title="del.icio.us"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;t=JavaScript%20Cookies%20%20" title="Facebook"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="Mixx"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20&amp;annotation=A%20cookie%20is%20often%20used%20to%20identify%20a%20user.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20is%20a%20Cookie%3F%0D%0AA%20cookie%20is%20a%20variable%20that%20is%20stored%20on%20the%20visitor%27s%20computer.%20Each%20time%20the%20same%20computer%20requests%20a%20page%20with%20a%20browser%2C%20it%20will%20send%20the%20cookie%20too.%20With%20JavaScript%2C%20you%20can%20bo" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="DZone"><img src="http://www.scriptclassifieds.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%20Cookies%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Fark"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="Faves"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;headline=JavaScript%20Cookies%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=A%20cookie%20is%20often%20used%20to%20identify%20a%20user.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20is%20a%20Cookie%3F%0D%0AA%20cookie%20is%20a%20variable%20that%20is%20stored%20on%20the%20visitor%27s%20computer.%20Each%20time%20the%20same%20computer%20requests%20a%20page%20with%20a%20browser%2C%20it%20will%20send%20the%20cookie%20too.%20With%20JavaScript%2C%20you%20can%20bo" title="LinkedIn"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="Live"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;bm_description=JavaScript%20Cookies%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;t=JavaScript%20Cookies%20%20" title="MySpace"><img src="http://www.scriptclassifieds.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%20Cookies%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Netvibes"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;h=JavaScript%20Cookies%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Propeller"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="Reddit"><img src="http://www.scriptclassifieds.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%20Cookies%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Slashdot"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;story_title=JavaScript%20Cookies%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;title=JavaScript%20Cookies%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Technorati"><img src="http://www.scriptclassifieds.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%20Cookies%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F" title="Twitter"><img src="http://www.scriptclassifieds.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.scriptclassifieds.com%2Fjavascript%2Fjavascript-cookies%2F&amp;submitHeadline=JavaScript%20Cookies%20%20&amp;submitSummary=A%20cookie%20is%20often%20used%20to%20identify%20a%20user.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20is%20a%20Cookie%3F%0D%0AA%20cookie%20is%20a%20variable%20that%20is%20stored%20on%20the%20visitor%27s%20computer.%20Each%20time%20the%20same%20computer%20requests%20a%20page%20with%20a%20browser%2C%20it%20will%20send%20the%20cookie%20too.%20With%20JavaScript%2C%20you%20can%20bo&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-cookies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

