I\'m trying to create a form and submit it immediately with javascript and I cannot figure out what I\'m doing wrong. here is my code:
function autoLogIn(un,
You also can do the Saurabh Chauhan response but without add the dinamic element to body This solution is all dinamic solution.
var myform = document.createElement("form");
myform.action = "myForm.aspx";
myform.method = "post";
product = document.createElement("input");
product.value = "value";
product.name = "name";
myform.appendChild(product);
myform.submit();