Answers for "javascript on the fly form submit"

0

javascript on the fly form submit

function post_to_url(path, method) {
	method = method || "post";

	var form = document.createElement("form");
	form.setAttribute("method", method);
	form.setAttribute("action", path);
	
	document.body.appendChild(form);
	form.submit();
}
Posted by: Guest on February-10-2021

Code answers related to "javascript on the fly form submit"

Code answers related to "Javascript"

Browse Popular Code Answers by Language