function Openpostwindow (Url,name, data1, data2)
{
var tempform = document.createelement ("form");
Tempform.id = "TempForm1";
Tempform.method = "POST";
tempform.action = URL;
Tempform.target=name;
var hideInput1 = document.createelement ("input");
Hideinput1.type = "hidden";
Hideinput1.name= "Data1";
Hideinput1.value = data1;
var hideInput2 = document.createelement ("input");
Hideinput2.type = "hidden";
Hideinput2.name= "Data2";
Hideinput2.value = data2;
Tempform.appendchild (HIDEINPUT1);
Tempform.appendchild (HIDEINPUT2);
if (document.all)
{
Tempform.attachevent ("onsubmit", function () {}); Ie
}
Else
{
var subobj = Tempform.addeventlistener ("Submit", function () {},false); Firefox
}
Document.body.appendChild (Tempform);
if (document.all)
{
Tempform.fireevent ("onsubmit");
}
Else
{
Tempform.dispatchevent (New Event ("submit"));
}
Tempform.submit ();
Document.body.removeChild (Tempform);
}
JS Windows.open () Analog post submission