create a form and submit it dynamically jquery

JavaScript
$(function() {
   $('<form action="form2.html"></form>').appendTo('body').submit().remove();
});
Source

Also in JavaScript: