How to close the tab with Javascript?

Asked

Viewed 122 times

0

Well my question is this, there is some javascript code, which automatically closes the tab that is open on that page?

That is I enter a tab of my browser on the oi.html page, there is some code that closes the tab automatically?

Thank you.

1 answer

0

Gonçalo, you can use javascript:

window.close();

With this you can close the current tab.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.