title: Javascript send href without clicking?
body: <p>I'm not sure if this is possible. I have a link like this</p>
  
  <pre><code>&lt;a id="addCart" href="http://mydomain.foxycart.com/cart?name=test-product&amp;price=10.00"&gt;Add to Cart&lt;/a&gt;
  </code></pre>
  
  <p>This link, when clicked, sends the values to a json shopping cart on another server.</p>
  
  <p>However I have a situation where I need to send similar values with this href link but without being clicked. e.g:</p>
  
  <pre><code>$('.name').each(function() {
      while (y &lt; data.products.length-1) {
          if($(this).text() === data.products[x].name) {
              $('.price').eq(x).text(data.products[x].price);
              //href here!
          }
          x++;
          y++;
      }
      x=0;
      y=0;
  });
  </code></pre>
  
  <p>I need to pass this href:  </p>
  
  <pre><code>href="http://mydomain.foxycart.com/cart?value=true"
  </code></pre>
  
  <p>in the //href here! part above, without being clicked. I hope I'm making sense with my request. Is there a method to accomplish this? </p>
  
  <p>Thanks</p>