mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
15 lines
335 B
Markdown
15 lines
335 B
Markdown
# open-my-page
|
|
|
|
This extension includes:
|
|
|
|
* a background script, "background.js"
|
|
* a browser action
|
|
* a page "my-page.html"
|
|
|
|
All it does is: when the user clicks the button, open "my-page.html" in a new tab.
|
|
|
|
It shows:
|
|
|
|
* how to listen for browser action clicks in a background script
|
|
* how to open a page packaged with your extension
|