웹언어/JavaScript2012. 7. 16. 14:27


        var form = document.createElement("form");
		form.setAttribute("method", "post");
        form.setAttribute("action", "넘길 경로");
		
		var Field = document.createElement("input");
		Field.setAttribute("type", "hidden");
		Field.setAttribute("name", "data");
		Field.setAttribute("value", "넘겨줄 값");
		
		form.appendChild(Field);
		
		document.body.appendChild(form);
		form.submit();


Posted by 건깡