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