jQuery to submit form to new tab?
<p>I have an action link in a form that needs to be updated with a token every minute. I get the new url/token from an api call when the user clicks on the submit button. I'm using something like this</p>

<pre><code> &lt;form id="somelink" action="http://some.external.url/" target="_blank" /&gt;

 $('#somebutton').click(function(e) {
      e.preventDefault();
      var url = '/apicall?id=' + $('#someid').val();                  
      $.post(url, function(data) {
           $('#somelink').attr('action', data);
           $('#somelink').submit();
</code></pre>

<p>problem is, using js/jQuery when it submits it opens in a new window without the typical menu and buttons in the browser and it's the size of a popup window.</p>

<p>Without the jQuery if I just clicked on the button it'll open in a new tab.</p>

<p>How can I accomplish this with jQuery?</p>
