title: Javascript open new tab, and wait for it to close
body: <p>I want to open a new tab for a bank payment on my website using javascript, and without the main window navigating away,</p>
  
  <p>when the user is back from the bank payment to a return URL, i want to detect the reply of the return URL in from the other window ( if possible ) or just notify the main window that the transaction is done and it should check the database for updates.</p>
  
  <p>I've seen this behaviour on several websites, such as <code>popup-&gt;login-&gt;popup closes-&gt;main window reloads</code> with the loaded session, The problem is that i don't know what this method is called, so I don't know what keyword I'm looking for.</p>
  
  <p>What I exactly need is either the name of this method, or how is it done ( as a certain keyword in javascript or something )</p>
  
  <p>Thanks in advance</p>