JavaScript no formulário de mosca enviado

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();
}
steamboatid