Answer the question
In order to leave comments, you need to log in
How to ensure that the user's tab is closed when he clicks on a link?
Situation:
The user's email has a button "Add article to favorites". Is it possible to close the tab that will be opened when this button is clicked?
window.close() is blocked by Crome because the tab was not created via window.open()
Is it possible to solve the problem by passing a specific header?
Answer the question
In order to leave comments, you need to log in
It was still possible 20 years ago.
If I'm not mistaken, then in modern realities, now each Chrome tab is a separate process, which another process has no right to influence.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question