title: how to stop progress gif image when processing is stopped in browser
body: <p>How can i stop "progress bar gif image" when i stopped processing by clicking "Stop Loading This Page" in web browser? When i clicked submit button then loading.gif image is displayed and now if i clicked to stop browser's stop button then also that loading.gif is still running, how can i stop it? Gif should be stopped when browser's stop is clicked but it is not stopping and continuing. How can i solve it?</p>
  
  <p>//Here when submit button is clicked then loading.gif image is displayed</p>
  
  <pre><code> &lt;input onclick="showImg()" type="submit" name="submit" value="Search"/&gt;
  
   &lt;img alt="" src="loading.gif" id="progress_img" style="visibility:hidden;"&gt;
  
   &lt;script language="javascript" type="text/javascript"&gt;
   function showImg()
   {
   if (document.getElementById) { (document.getElementById("progress_img")).style.visibility = "visible"; }
   }
   &lt;/script&gt; 
  </code></pre>