title: set form target and submit it in safari
body: <p>Need some help. This javascript code should set the target of the form and submit it. doesn't work in safari 5.0.2 ... why???</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;You will be redirected to PayPal in a few seconds.
      &lt;form action="https://www.paypal.com/webscr" id="paypal_standard_checkout" name="paypal_standard_checkout" method="POST"&gt;
       &lt;input id="business" name="business" value="test@testxyz.com" type="hidden"/&gt;
      &lt;/form&gt;
      &lt;script type="text/javascript"&gt;
       document.getElementById("paypal_standard_checkout").setAttribute("target","payment"); 
       document.getElementById("paypal_standard_checkout").submit();
      &lt;/script&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>