0
Q:

chrome extension open new tab from popup

chrome.tabs.query({active: true, currentWindow: true},function(tabs){   
	var currentTab = tabs[0];
});
0
document.addEventListener('DOMContentLoaded', () => {
   var y = document.getElementById("index_link");
   y.addEventListener("click", openIndex);
});

function openIndex() {
 chrome.tabs.create({active: true, url: "http://my_url"});
}
0
<a id="index_link">My text</a>.
0

New to Communities?

Join the community