sending message to chrome extension from a web page
===

I want to send message from the console of the random web page to my chrome extension.
chrome.extension.sendMessage doesn't seem to work.

Any kind of help will be greatly appreciated.
Thanks.