open new tab from chrome extension popup code example
Example 1: chrome extension open new tab from popup
document.addEventListener('DOMContentLoaded', () => {
var y = document.getElementById("index_link");
y.addEventListener("click", openIndex);
});
function openIndex() {
chrome.tabs.create({active: true, url: "http://my_url"});
}
Example 2: chrome extension open new tab from popup
<a id="index_link">My text</a>.