title: Add #tab-something to onClick="window.location.href=window.location.href
body: <p>I need to add #tab-something to the URL with onClick="window.location.href=window.location.href or anything else, that will provide me with the following:</p>
  
  <p>If the present URL is .../product_id=49 I want when clicked on a particular link at that same page, the page to refresh and the URL to become .../product_id=49#tab-something</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT: Here is the working code:</p>
  
  <pre><code>&lt;a onclick="$('a[href=\'#tab-askquestion\']').trigger('click');"&gt;
  </code></pre>
  
  <p>Any chance to make it scroll down to it?</p>