Chrome Extension Send Message From Background.js to Content Script
I have read the documentation on how to do Send Message From background javascript file(main.js) to Content Script (content.js) but I cannot get the onMessage to open my alert. Manifest.json { "name": "Example", "version": "1.0.1", "manifest_version" : 2, "description": "Example Description", "background" : { "scripts" : ["main.js"] }, "page_action" : { "default_icon": { "19": "icons/19.png", "38": "icons/38.png" }, "default_title" : "Example Title" }, "content_scripts": [{ "matches": ["<all_urls>"], "js": ["lib/jquery-1.8.3.min.js","scripts/content.js"], "run_at": "document_idle", "all_frames