A
A
Alexey Bespalov2019-02-05 07:38:37
Google Chrome
Alexey Bespalov, 2019-02-05 07:38:37

How to display the prepared page in a new tab in the extension?

Greetings!
I want to practice browser extensions. There is an idea to make a panel with bookmark tiles, like in opera.
But in all examples of extensions that I find, examples of popup windows are described. I want to open a new tab and load my html+js there.
Tell me how it's done or how can I google correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Somewhere Intech, 2019-02-05
@FreeArcher

Without priests and perversions

chrome.tabs.create({
  url: `chrome-extension://${chrome.runtime.id}/nopopup.html`
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question