R
R
Ramil2015-03-04 02:29:52
Google Chrome
Ramil, 2015-03-04 02:29:52

How to navigate to a website when clicking on an icon in Chrome?

Hello everyone, I tried a lot of options and did not find it.
I'm writing a plugin for Chrome.
It is required that when you click on the icon at the top right in the browser, next to the menu, there will be a transition to the project website.
You don't need a popup, just a transition.
Who faced, tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-03-04
Abdrahimov @MrAbdrahimov

chrome.browserAction.onClicked.addListener(function() {
    chrome.tabs.create({'url': "http://site.example.com"});
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question