JavaScriptによる送信: フォームを送信
画面上にフォームは存在しません。JavaScriptでフォームを作製し、データを設定します。
JavaScriptによる送信: 仮想フォームを送信
document.form_sending.submit();
var send_form = document.createElement("form");
document.body.appendChild(send_form);
send_form.name = "fsend";
send_form.action = "form_send_JIS4.html";
send_form.method = "get";
send_form.enctype = "text/plain";
send_form.style.visibility = "hidden";
var fin1 = document.createElement("input");
send_form.appendChild(fin1);
fin1.name = "virtual1";
fin1.type = "text";
fin1.value = document.form_sending.textfield1.value;
var fin2 = document.createElement("input");
send_form.appendChild(fin2);
fin2.name = "virtual2";
fin2.type = "text";
fin2.value = document.form_sending.textfield2.value;
send_form.submit();