title: What is location.search in javascript
body: <p>I want to know what <code>location.search.substring(1)</code> actually does. I saw this code on some website. I tried to print using <code>alert</code>, but this did not give any result. Is it supposed to alert location href?</p>
  
  <pre><code>alert(location.search.substring(1))
  </code></pre>