title: Detect new tab closing from parent(opener)
body: <p>I have read a bunch of posts but none of them seem to answer the question that i have exactly.</p>
  
  <p>Is it possible to detect a tab closing that was opened by a <code>target="_blank"</code> attr?</p>
  
  <p>I need a new tab/window to open, the user will select an option, then the tab closes.</p>
  
  <p>When that tab closes i need the original window(parent or opener) to refresh.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>further explaination</p>
  
  <p>i have an application that opens another application in an iframe. the application opening in the iframe connects to social media for posting a share. the new tab that opens is used for authentication/oauth dance. the page that is open in the main window shows the accounts that are connected and allows you to connect new accounts(in the main window in the iframe). the authentication/oauth opens a new window/tab to do the dance, then it closes itself. i need the parent window(main window with iframe in it) to know that the new tab/window closed so it can refresh the content and reflect the new connect.</p>
  
  <p><strong>FINAL NOTE</strong>
  I use many authentication methods, so really the above is irrelavant.</p>
  
  <p>I just need to find out a way to monitor the new tab/window that has opened or even have the new window/tab fire a browser event onunload to that the parent/main window knows it closing so it can refresh.</p>