2012-10-29 7 views

Odpowiedz

10

Można otworzyć ten z chrome.tabs.update, you don't need the tabs permission for this.

options.html

<script src="options.js"></script> 
<a href="#" id="test">test</a> 

options.js

document.addEventListener('DOMContentLoaded', function() { 
    document.getElementById('test').addEventListener('click', function() { 
     chrome.tabs.update({ url: 'chrome://chrome/extensions' }); 
    }); 
}); 
Powiązane problemy