Update Image, capture screengrab and save to disk using JavaScript
<p><strong>Refresh Image Src content and Stop the refreshing</strong>
<br>
Hi, i have a function that refresh the "src" attr every second. , now i want when i click button stop, it will stop the interval, in addtion, to make a button to take the picture and save it to computer, like snapshot.</p>

<pre><code>&lt;img src="http://someurl" id="image1" class="g" /&gt;
&lt;button id="stop"&gt;STOP!&lt;/button&gt;
&lt;button id="capture"&gt;capture&lt;/button&gt;
</code></pre>

<p><a href="http://jsfiddle.net/vmVTU/" rel="nofollow">Example </a>
you can see here what i wrote and give me directions , thanks.</p>
