title: Creating form using JavaScript
body: <p>Here is my code below, </p>
  
  <pre><code>          var mapForm = document.createElement("form");
            mapForm.target = "_blank";    
            mapForm.method = "POST";
            mapForm.action = "delete";
  
            // Create an input
            var mapInput = document.createElement("input");
            mapInput.type = "hidden";
            mapInput.name = "uploaded";
            mapInput.value = file.name;
  
            // Add the input to the form
            mapForm.appendChild(mapInput);
  
            // Add the form to dom
            document.body.appendChild(mapForm);
  
            // Just submit
            mapForm.submit();
  </code></pre>
  
  <p>it does work, but after submitting the value, it opens the action URL in a new window because i have given <code>mapForm.target = "_blank";</code> , is it possible to submit the form without opening any windows i mean it <strong>should stay in the same window but it should not go to "delete page"</strong>?, not by using ajax...</p>