title: Can't see form I created dynamiclly javascript
body: <p>I'm new to javascript, and just trying to learn the basics of using it dynamiclly, not via the html file.</p>
  
  <p>I'm trying to create a form dynamically on <code>js</code> so I have this in my html file :</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;new Form&lt;/title&gt;
          &lt;LINK rel="stylesheet" type="text/css" href='Formstyle.css'&gt;&lt;/LINK&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;script src='form.js'&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>in my js file i have this</p>
  
  <pre><code>var f = document.createElement("form");
  f.setAttribute('method',"post");
  f.setAttribute('action',"submit.php");
  
  var i = document.createElement("input");
  i.type = "text";
  i.name = "user_name";
  </code></pre>
  
  <p>but for some reason i'm running the file in chrome, but I get nothing.</p>