P
P
polikarpovst2018-09-21 11:41:12
JavaScript
polikarpovst, 2018-09-21 11:41:12

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

3 answer(s)
R
RidgeA, 2018-09-21
@RidgeA

no
way

P
profesor08, 2018-09-21
@profesor08

it is necessary to ban such sites with such needs

R
Randel Kovalsky, 2018-09-22
@Randel

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 question

Ask a Question

731 491 924 answers to any question