title: Redirect to another page and pass parameter via JavaScript
body: <p>I have been trying to pass parameter in a ASP.NET page to another page (in our web site) by redirecting using JavaScript (or jQuery, Ajax, Fetch, etc.) and catch this parameter on Load event of the redirected page via JavaScript. However, I am not sure if I can do this. Any idea? </p>
  
  <p><strong><em>News Page:</em></strong></p>
  
  <pre><code>window.location = '/news/details?id=4';
  </code></pre>
  
  <p><strong><em>Details Page:</em></strong></p>
  
  <pre><code>$(function (id) {
      console.log('Pass parameter: ' + id);        
  });
  </code></pre>
  
  <p>Any help would be appreciated...</p>