title: window.open and sending form data not working
body: <p>I'm trying to open new window and send form data
  with <strong>javascript</strong> and <strong>jquery-1.8.3</strong>. But, It's not woriking.</p>
  
  <p>This is source code.</p>
  
  <pre><code>&lt;a href="#" onclick="printPage()"&gt;Print this&lt;/a&gt;
  
  &lt;script type="text/javascript" src="/common/js/jquery-1.8.3.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      function printPage(){
  
          var form = $("&lt;form method='post' action='/common/print.jsp' target='printWindow'&gt;&lt;/form&gt;");
          var input = $("&lt;input type='hidden' name='view'/&gt;");
          input.val($("#ctn").html());
          form.append(input);
          var printWindow = window.open(form.attr("action"), "printWindow", "width=700px,height=800px");
          form.submit();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>window was opened. But  <code>request.getParameter("name")</code> is null.</p>
  
  <p>Here is <code>/common/print.jsp</code> page</p>
  
  <pre><code>&lt;%@ page contentType="text/html; charset=utf-8"%&gt;
  &lt;% request.setCharacterEncoding("UTF-8"); %&gt;
  &lt;div id="ctn"&gt;
  &lt;%
      out.print(request.getParameter("view"));
  %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What's the problem in this code? </p>