access url when press buttonn

20 views
Skip to first unread message

djelaili mohamed

unread,
Jun 12, 2016, 12:09:20 PM6/12/16
to Chromium-Extensions-Announce
Hello everybody, I trying to learn chrome extensions development by doing, so I created the manifest file and the browser action file.
I want to know how can I open a link in the current tab if the user clicks a button

PhistucK

unread,
Jun 12, 2016, 1:06:53 PM6/12/16
to djelaili mohamed, Chromium-Extensions-Announce
In your chrome.browserAction.onClicked listener, I think you need to call chrome.tabs.update({url: ...}).


PhistucK

On Sun, Jun 12, 2016 at 7:09 PM, djelaili mohamed <mohpa...@gmail.com> wrote:
Hello everybody, I trying to learn chrome extensions development by doing, so I created the manifest file and the browser action file.
I want to know how can I open a link in the current tab if the user clicks a button

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/0da388ce-d0b9-4fa7-b168-cd437251b2bd%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages