title: create variable javascript with an input value
body: <p>I don't know if this can be do it, i have a input with a submit:</p>
  
  <pre><code>Variable JSON (data/data.links)
      &lt;input type="text" id="newVarJson" value="data" onclick="verifica();"/&gt;&lt;br&gt;
  </code></pre>
  
  <p>and I need to put the value of that input as the name of a variable in javascript to create a json with that name, i thought on make that:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;     
  
  function verifica(){
      var document.getElementById(newVarJson).value={}
      data.value="asdf";
      alert(JSON.stringify(data));
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>As you see, the variable the input value = data, I don't know if this can be do it, so, can someone tell me any tips to make this, or it can't be do it?</p>
  
  <p>Thanks!</p>