title: passing the input value of search bar as a parameter in button onclick
body: <p>How can I pass the value entered by user in the search bar with the link in the button.   </p>
  
  <pre><code>&lt;form&gt;
  
  &lt;input type="text" id="search" class="st-search-input search-field" value="abc"/&gt;
  
  &lt;button type="submit" onclick='window.open("test4?abcd=\"search.value\"");'&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>