title: Javascript - HTML - Image show not working in safari
body: <p>i have added loading image, works fine in explorer and chrome. but not working with apple safari in mac nor in iPhone. can't show image </p>
  
  <p>here is code</p>
  
  <pre><code>&lt;script type = "text/javascript"&gt;
      function pic1()
      {
          document.getElementById("img").src = "images/waitnew.gif";
      }
   &lt;/script&gt;
  
          &lt;button id="btn_item_search" class="sear-btn" type="submit" onclick="pic1()" &gt;&lt;?php echo SEARCH_TEXT; ?&gt;&lt;/button&gt;
  
  &lt;img src = "" id = "img"/&gt; 
  </code></pre>
  
  <p>thanks for your help.</p>
  
  <p>regards,</p>