Reputation: 11
I want to click on a link and make the open chrome tab (that my page is opened in) to close. Can i use the chrome.tab.remove method to do that? Should i do anything more beforehand in order for this to work. Please advice how to do that in javascript.
Upvotes: 0
Views: 109
Reputation: 327
Try this code:
window.open('', '_self');
else
window.close();
else
win.close();
Upvotes: 1