K
K
Kolyvan222020-12-11 18:53:51
JavaScript
Kolyvan22, 2020-12-11 18:53:51

How to make it so that after opening a new tab in the Chrome browser, the old tab is automatically closed?

How to write a script so that after opening a new tab in the chrome browser, the old one automatically closes or so that the tab itself closes after 5 seconds?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ksnk, 2020-12-11
@ksnk

<a href="#" onclick="setTimeout(function(){window.close()},3000)" target="_blank">xxx1</a>

Not this way ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question