title: How to get handle of current browser tab
body: <p>In my Home page, I have one anchor link pointing to a page that I open in new tab. Now this page has a link pointing back to my Home page. So my question is how to target the Home page in its existing tab?</p>
  
  <p>So lets say I have Home page as Home.html with link as PageA.html set as follows - </p>
  
  <pre><code>&lt;a href="PageA.html" target="pagea"&gt;Page-A&lt;/a&gt;
  </code></pre>
  
  <p>This allows me to always open PageA in existing tab if already opened. Now I want to open Home page from this page, so how to set the anchor tag so that it opens the Home page in the already opened tab of Home.html?</p>
  
  <p>So basically user can click a link to open its page in a new tab if it doesn't already exists, but should open the existing tab if it exists. So in the above scenario, max of 2 tabs should be open. This is a requirement for our web portal. </p>
  
  <p>Thanks a lot.</p>
  
  <p>[Edited post to simplify problem with just 2 pages]</p>