title: How to read all url params using js?
body: <p>Is there any way, how to read url params?</p>
  
  <pre><code>www.example.com/detail?id=12
  www.example.com/detail/12
  </code></pre>
  
  <p>Return 12...</p>
  
  <p>I do not know what the parameters are. I want to return all.</p>