Well, my question is, is there any javascript code that automatically closes the tab that is open on that page?
In other words, I enter a tab in my browser on the page hi.html, is there any code that automatically closes the tab?
Thank you.
Well, my question is, is there any javascript code that automatically closes the tab that is open on that page?
In other words, I enter a tab in my browser on the page hi.html, is there any code that automatically closes the tab?
Thank you.
Gonçalo, you can use the javascript function:
window.close();
With this you can close the current tab.