i am learning how to write chrome extensions, i found one example where, using a browseaction it´s posible to change the backgroundcolor of the webpage, i am trying to do something really similar, changing the backgroundimage, but for some reason...it is not working, the js function is:
function click(e) {
chrome.tabs.executeScript(null,
{code:"document.body.style.background=url('ffrontier.jpg')"});
window.close();
}
I am pretty sure it is something about my sintax but i cant figure it out, can anybody help me? THANKS A LOT