title: How to get Value of img tag?
body: <p>How can i get value of img tag??? in img tag we have one property named "Value" so i want to know that how can i access this value property in javascript???
  
  I use this code:</p>
  
  <pre><code>function addcart()
      {
          $cartvalue=confirm("Would You like to add This Product to Your Cart?"); 
          if($cartvalue)
          {
              var product=document.getElementById('prod1').value;
              alert(product);
  
          }
      }
  </code></pre>
  
  <p>here prod1 is value of img tag
  but it display as undefine in alert</p>