title: Switching between the same two tabs only in a browser using javascript and html
body: <p>My idea of what am trying to do is 
  When I open a website on one tab of an internet explorer broweser and click on a link it should open a new tab in the same browser with a pdf page init ... the pdf page has a lot of links which if u try clicking on any of them they should take you back to the old tab where u managed to lunch open the pdf from and keep switching between those two tabs only 
  I hope the idea is clear .. am trying to do this using html and javascript ... this what I wrote but am still missing a lot here. Thanks in advance for any help provided</p>
  
  <p>this piece here lunches another instant in another window </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function son()
  {
  
   myWindow=window.open('','','width=500,height=500');
   myWindow.document.write(" SON !");
   myWindow.focus();
   myWindow.opener.document.write("&lt;p&gt; DAD !&lt;/p&gt;");
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;input type="button" value="Open " onclick="son()" /&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This file is where I have the pdf file built in.</p>
  
  <pre><code>&lt;object data="Test.pdf" type="application/pdf" width="100%" height="100%"&gt;
  
  &lt;p&gt;It appears you don't have a PDF plugin for this browser.
  you can &lt;a href="Test.pdf"&gt;click here to
  download the PDF file.&lt;/a&gt;&lt;/p&gt;
  
  &lt;/object&gt;
  </code></pre>
  
  <p>thanks again </p>