title: Google Custom Search results opening in popup on page
body: <p>I'm not sure what I'm doing wrong but the Google Custom Search I'm setting up on this site I have is not working the way I need it to. What I want is for the results to display within a page, and while the search takes me to the page, the results appear in a popup window for some reason.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>    &lt;script&gt;
          (function () {
              var cx = '[hidden]';
              var gcse = document.createElement('script');
              gcse.type = 'text/javascript';
              gcse.async = true;
              gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
                  '//www.google.com/cse/cse.js?cx=' + cx;
              var s = document.getElementsByTagName('script')[0];
              s.parentNode.insertBefore(gcse, s);
          })();
      &lt;/script&gt;
  
  &lt;gcse:searchbox-only linktarget="_self" resultsUrl="/HomePage/Search-Results"&gt;&lt;/gcse:searchbox-only&gt;
  </code></pre>
  
  <p>I tried using _parent for linktarget, but that did not solve the issue, either. Is there a way to disable this Google Custom Search from opening results in pop-ups? </p>