title: jQuery Popup to open a new tab in the main browser window
body: <p>I'm opening a popup window using</p>
  
  <pre><code>window.open(url, title, 'width=1055,height=750,scrollbar=yes');
  </code></pre>
  
  <p>When clicking something on that popup, I want to close the popup and then redirect the browser tab that opened the popup. I achieve this by doing</p>
  
  <pre><code>window.opener.location.href = 'newurl.php';
  window.close();
  </code></pre>
  
  <p>I'm now adding some validation to check whether the browser tab that opened the popup is still available or if it's been closed. Now I'm doing this:</p>
  
  <pre><code>if(window.opener) {
      window.opener.location.href = 'newurl.php';
      window.close();
  } else {
      window.location.href = 'newurl.php';
  }
  </code></pre>
  
  <p>What I want to do now is on the <code>else</code> portion, instead of using the popup window, I'd like to open a new tab on the main browser window. I hope I was clear on what I wanted help with. Let me know if you need more information.</p>
  
  <h3>Note</h3>
  
  <p>I am aware that using a modal is probably a better approach but this decision is not for me to make.</p>