Answers for "make form submit on new window using jquery"

0

make form submit on new window using jquery

var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", xxx);

function submitToPopup(f) {
    var w = window.open('', 'form-target', 'width=600, height=400, any-other-option, ...');
    f.target = 'form-target';
    f.submit();
};

document.body.appendChild(form);

submitToPopup(form);
Posted by: Guest on September-28-2021

Code answers related to "make form submit on new window using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language