title: Fill input fields of another Website using JavaScript
body: <p>I am trying to write a script, that automatically fills two input fields of another website. I looked at the website an saw, that the two input fields have the name 'userid' and 'userpass'.
  I also wrote this very simple little piece of code to make it more understandable. (Lets say <a href="http://www.w3schools.com" rel="nofollow">http://www.w3schools.com</a> has two input fields with the names 'userid' and 'userpass')</p>
  
  <pre><code>&lt;input type="button" value="Username" onClick="Start()" /&gt;
  &lt;input type="text" id="username" value="Username"/&gt;
  &lt;input type="text" id="password "value="Password"/&gt;
  
  &lt;script language="JavaScript"&gt;
  
  function Start()
  {
      var username = document.getElementById("username").value;
      var password = document.getElementById("password").value;;
  
      window.open("http://www.w3schools.com");
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I pass the two variables and fill the value of them to the two input fields?
  Is there any possible way?</p>
  
  <p>Thank you</p>