title: WordPress search - Do nothing if no search string has been entered
body: <p>I have the following snippet of code:</p>
  
  <pre><code>&lt;form id="searchform" method="get" action="&lt;?php bloginfo('siteurl')?&gt;/"&gt;
  &lt;input type="text" name="s" id="s" class="textbox" placeholder="Search" /&gt;
  &lt;input type="submit" id="t" value="&amp;gt;" class="searchsubmit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Unfortunately if no search string is entered, and the submit button is pressed or Enter is hit, then it takes you off to an undesired page.</p>
  
  <p>For me this is the blog page as I can see the 'blog' class in the body.</p>
  
  <p>How can I prevent the search from triggering until a string is entered?</p>
  
  <p>Thanks for your time and help in advance.</p>