I have a button.
<button (click)="bxs()">
<span>BXS</span>
</button>
my TS:
bxs(): void {
window.open(url, "bxs");
}
how to show a error message where it s already open Example:
If I already click the button to open then it has to show a error message
I tried this with sessionStorage
sessionStorage.setItem( BXD , true );
but it doesn t detect if the URL opened is closed or not.
Thanks in advance.