I am developing a Chrome extention. My manifest.json is:
"page_action": {
"default_icon": {
"19": "icons/icon19.png",
"38": "icons/icon38.jpg"
},
"default_popup": "options.html"
},
In my extension I am trying to execute scripts which attempt to run/reach on actual web page:
// in options.html
chrome.tabs.executescript(null,{code:"alert('hello!');"}) ;
But Chrome extension debugger outputs this error:
Uncaught TypeError: Object #<Object> has no method 'executescript'
I want to reflect any changes on options to content_script or actual web page immidiately.
In page_action scope, how can I reach "chrome" object?