title: How to open up a new tab in a pop-up?
body: <p>I don't know too much about programming but somehow I managed to make a pop-up window work. However, I need that from inside the new window (the pop-up one) a button on the pop-up will open a new tab. But I don't need the new tab open in the main browser, I want it open in the same pop-up.</p>
  
  <p>Is this possible?</p>
  
  <p>How can I do it?</p>
  
  <p>I show both the pop-up code and the redirection code that is, at present, sending people to another tab in my web browser, but I need to do it in the same pop-up window that is already open. Here is the code in the pop-up:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;p&gt;Click aquí para escuchar Radio Lineage.&lt;/p&gt;
  
  &lt;button onclick="myFunction()"&gt;Try it&lt;/button&gt;
  
  &lt;script&gt;
  function myFunction()
  {
  window.open("http://localhost:8000/player/index.html");
  }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here the code of the new tab:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  .
  .
  &lt;script type="text/javascript" src="http://hosted.musesradioplayer.com/mrp.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  MRP.insert({
  'url':'localhost:8000/stream',
  'lang':'es',
  'codec':'mp3',
  'volume':65,
  'autoplay':true,
  'buffering':5,
  'title':'Radio LineageChile',
  'welcome':'Bienvenido a...',
  'bgcolor':'#FFFFFF',
  'skin':'radiovoz',
  'width':220,
  'height':69
  });
  &lt;/script&gt;
  .
  .
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>