user1753079
user1753079

Reputation: 11

close a chrome tab with js using chrome.tab.remove

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

Answers (1)

vengatesh rkv
vengatesh rkv

Reputation: 327

Try this code:

window.open('', '_self');
else
window.close();
else
win.close();

Upvotes: 1

Related Questions