<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Difference between javascript function setTimeout() and setInterval()</title>
	<atom:link href="http://prabeengiri.com.np/javascript/difference-between-javascript-function-settimeout-and-setinterval.html/feed" rel="self" type="application/rss+xml" />
	<link>http://prabeengiri.com.np/javascript/difference-between-javascript-function-settimeout-and-setinterval.html</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 28 Feb 2012 13:28:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Prabeen</title>
		<link>http://prabeengiri.com.np/javascript/difference-between-javascript-function-settimeout-and-setinterval.html/comment-page-1#comment-2066</link>
		<dc:creator>Prabeen</dc:creator>
		<pubDate>Fri, 19 Mar 2010 12:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://prabeengiri.com.np/?p=385#comment-2066</guid>
		<description>setTimeout(myalert(’Does not wait for five seconds’), 5000 );

In the above statment , its alerting the argument without waiting for 5 second because , its not you can use setTimout function in that way , its because setTimeout function is not working , so  only executing myalert() function  without creating Delay.

Its due to the incorrect usage of settimeout function () i.e. missing quotes around argument provided..</description>
		<content:encoded><![CDATA[<p>setTimeout(myalert(’Does not wait for five seconds’), 5000 );</p>
<p>In the above statment , its alerting the argument without waiting for 5 second because , its not you can use setTimout function in that way , its because setTimeout function is not working , so  only executing myalert() function  without creating Delay.</p>
<p>Its due to the incorrect usage of settimeout function () i.e. missing quotes around argument provided..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rameshwor</title>
		<link>http://prabeengiri.com.np/javascript/difference-between-javascript-function-settimeout-and-setinterval.html/comment-page-1#comment-2065</link>
		<dc:creator>Rameshwor</dc:creator>
		<pubDate>Fri, 19 Mar 2010 09:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://prabeengiri.com.np/?p=385#comment-2065</guid>
		<description>
setTimeout(&quot;myalert(&#039;Waits for five seconds&#039;)&quot;, 5000 );




setTimeout(myalert(&#039;Does not wait for five seconds&#039;), 5000 );


function myalert(str)
{
	alert(str);
}



can you please explain me the difference??</description>
		<content:encoded><![CDATA[<p>setTimeout(&#8220;myalert(&#8216;Waits for five seconds&#8217;)&#8221;, 5000 );</p>
<p>setTimeout(myalert(&#8216;Does not wait for five seconds&#8217;), 5000 );</p>
<p>function myalert(str)<br />
{<br />
	alert(str);<br />
}</p>
<p>can you please explain me the difference??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

