I have added one button on the popup.html and i would like you to give me any example of what should i doso this button when is pushed to execute one javascript code.
<script src='popup.js'></script>document.getElementById('thebutton').onclick = doSomeStuff;
function doSomeStuff() { etc }