title: Passing variables to hidden form fields with JavaScript
body: <p>Can someone suggest an alternative to the following code for passing hidden form field values?  Thanks in advance for suggestions</p>
  
  <pre><code>//Working Fine but breaks some forms
  document.write("&lt;INPUT TYPE=\"hidden\" id=\"Field1\" name=\"Field1\" VALUE=\"" + VarXYZ + "\"&gt;\r\n");
  </code></pre>