showing results for - "chrome extension open new tab from popup"
Maelia
29 Aug 2017
1document.addEventListener('DOMContentLoaded', () => {
2   var y = document.getElementById("index_link");
3   y.addEventListener("click", openIndex);
4});
5
6function openIndex() {
7 chrome.tabs.create({active: true, url: "http://my_url"});
8}
9
Paul
17 Apr 2018
1<a id="index_link">My text</a>.
2