Form submit with javascript works in Google Chrome only once

forms, google-chrome, javascript, submit

Solution

Forms with target="_blank" submiting only once. This is webkit & chromium bugs.

Problem

I have simple form. ``` <form target="_blank" action="somescript.php" method="Post" id="simpleForm"> <input type="hidden" name="url" value="http://..."> <input type="hidden" name="code" value="wrxosf"> </form> ``` ...and there are some anchor link ``` <a href="#" onclick="$('#simpleForm').submit();return false;">Do it!</a> ``` It works fine in FireFox or IE, but Google Chrome. Chrome does once, then link become unclickable.

Original source