title: How to know if a url has parameters in javascript
body: <p>I want to check if a url has parameters or it doesn't, so I know how to append the following parameters(with ? or &amp;). In Javascript</p>
  
  <p>Thanks in advance</p>
  
  <p>Edit:
  With this solution it works perfectly:</p>
  
  <pre><code>myURL.indexOf("?") &gt; -1
  </code></pre>