Looking to add a link on a webpage that will specifically close the active tab in a browser without affecting other tabs. Upon clicking the close link, the user should receive an alert message prompting them to confirm with two options: "YES" and "NO". If "YES" is clicked, the current page will close and redirect to the parent tab, while selecting "NO" will result in no action.
I acknowledge this may not be the most seamless process, but I am actively seeking a resolution.