title: How to use _self in window.open when a value is included?
body: <pre><code>$("#input").keypress(function(event) {
          if (event.keyCode == 13) {
              window.open("search.html?search=" + $("#input").val()); // here is the location
              let searchString = $("#input").val()
              localStorage.setItem("search", JSON.stringify(searchString)); 
          }
      });
  </code></pre>
  
  <p>Its working but opens another tab. It doesnt work without the + $("#input").val());</p>
  
  <p>Tried with both window.location and all the other examples on SO...
  Please help</p>