This is a very trivial example:
manifest.json
{
  ...
  "content_scripts": [
    {
      "js": [
        "/js/external/jquery-2.1.3.min.js", 
        "/js/content_script.js"
      ],
      ...
    }
  ],
  ...
}
content_script.js
function demo() {
  alert('demo');
}
$(function() {
  $( "body" ).prepend( 
    "<input type=\"button\" value=\"Press me\" onclick=\"demo()\" />"
  );
});
I get this error in the console:
Uncaught ReferenceError: demo is not defined
How do I get the functionality to work?
 
     
     
     
    