how to click link from pop up exetnsion chrome 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>.