chrome.runtime.sendMessage() method. This method allows you to send a message from the background script to any other part of your extension, including content scripts.chrome.runtime.sendMessage() to send a message to the content script. For example:chrome.runtime.onMessage.addListener() to listen for messages from the background script. For example: