 <p>Something like this, using form.target and empty window.open (code not tested) : </p> <pre><code>&lt;form name="myform" action="postoffer_preview.php" target="myNewWin" method=post"&gt; &lt;input type="button" name="preview" id="inline_submit_a" value="PREVIEW" /&gt; &lt;/form&gt; &lt;script&gt; var open_post_window = function () { window.open("","myNewWin","width=500,height=300,toolbar=0"); document.myform.submit(); } $('#inline_submit_a').click(function(evt) { var msg = document.getElementById('message').value; var myLineBreak = msg.replace(/([^&gt;\r\n]?)(\r\n|\n\r|\r|\n)/g, '&lt;br /&gt;'); jQuery.ajax({ type: 'POST', url: '/someajax.php', data: "msg="+myLineBreak, success: function(data) { open_post_window(); return false; } }); }); &lt;/script&gt; </code></pre> <p>Add a little setTimeout on document.myform.submit() may be necessary.</p>