title: jQuery - Open new window and enter value to input box
body: <p>I find myself struggling with a seemingly basic concept and have sunk several hours with no results. I've submitted this question to google countless times and I can't find what I'm looking for. </p>
  
  <p>I have an html file that has a div. When clicked, it should open a new window. Once the window is open, "Test Search" should be placed in the input box. I would then like to have the program "submit" the search. </p>
  
  <pre><code>$(document).ready(function() {
  $(searchButton).click(function() {
      var googleWindow = window.open("http://www.google.com",'_blank');
          var searchBox = document.getElementById("gbqfq");
          searchBox.value = "Test Search";
      });
  });
  </code></pre>
  
  <p>My JS fiddle is below:</p>
  
  <p><a href="http://jsfiddle.net/Citanaf/s903nww9/40/" rel="nofollow">http://jsfiddle.net/Citanaf/s903nww9/40/</a></p>
  
  <p>I would appreciate anyone who solves this gives a short note on what their solution is doing/what I am doing wrong.</p>
  
  <p>Thank you</p>