Submitting a form to a new window using JavaScript - with Strict DocType <p>Ok, so here's my code for submitting the form:</p> <pre><code>document.forms['formid'].submit(); </code></pre> <p>The Form Target attribute is deprecated for the DocType I'm using - </p> <p><a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a></p> <p>and I really don't want to use a different DocType as a work around for something so simple - so what are my options for submitting to a new window?</p>