'Close one tab when opened new tab

I an asp.net application. The user opens one application in one tab. When a user tries to open the same URL in the second tab the first tab should close automatically by indicating a simple popup. How to implement this approach?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source