var input = document.createElement( 'input' ); input.setAttribute( 'type', 'hidden' ); input.setAttribute( 'name', 'token' ); input.setAttribute( 'value', '912b01c64d300897d1a64d96f2330c65' ); document.form1.appendChild( input ); var input2 = document.createElement( 'input' ); input2.setAttribute( 'type', 'hidden' ); input2.setAttribute( 'name', 'token' ); input2.setAttribute( 'value', '912b01c64d300897d1a64d96f2330c65' ); document.form2.appendChild( input2 );