var f = document.createElement("form");
f.setAttribute('method',"post");
f.setAttribute('id',"formum");
f.setAttribute('action',"TSSGateway");
var i1 = document.createElement("input");
i1.setAttribute('type',"text");
i1.setAttribute('name',"mid");
var i2 = document.createElement("input");
i2.setAttribute('type',"text");
i2.setAttribute('name',"posnetID");
var i3 = document.createElement("input");
i3.setAttribute('type',"text");
i3.setAttribute('name',"posnetData");
var i4 = document.createElement("input");
i4.setAttribute('type',"text");
i4.setAttribute('name',"posnetData2");
var i5 = document.createElement("input");
i5.setAttribute('type',"text");
i5.setAttribute('name',"digest");
var i6 = document.createElement("input");
i6.setAttribute('type',"text");
i6.setAttribute('name',"vftCode");
var i7 = document.createElement("input");
i7.setAttribute('type',"text");
i7.setAttribute('name',"merchantReturnURL");
var i8 = document.createElement("input");
i8.setAttribute('type',"text");
i8.setAttribute('name',"lang");
var i9 = document.createElement("input");
i9.setAttribute('type',"text");
i9.setAttribute('name',"url");
var i10 = document.createElement("input");
i10.setAttribute('type',"text");
i10.setAttribute('name',"openANewWindow");
i10.setAttribute('value',"0");
var s = document.createElement("input"); //input element, Submit button
s.setAttribute('type',"submit");
s.setAttribute('value',"Submit");
f.appendChild(i1);
f.appendChild(i2);
f.appendChild(i3);
f.appendChild(i4);
f.appendChild(i5);
f.appendChild(i6);
f.appendChild(i7);
f.appendChild(i8);
f.appendChild(i9);
f.appendChild(i10);
f.appendChild(s);
//and some more input elements here
//and dont forget to add a submit button
document.getElementsByTagName('body')[0].appendChild(f);
//$('#formum').submit();
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.