I want to create an extension that redirects the user to another website if he clicks on the extension button. So far I have only seen extensions which create a new tab for
You can use chrome.tabs.query too
chrome.tabs.query({currentWindow: true, active: true}, function (tab) { chrome.tabs.update(tab.id, {url: your_new_url}); });