Accessing Current Tab DOM Object from "popup.html"?

To get the DOM from a specific tab, you would need to use content scripts communications. For example we need to send a request from the extension to your content script via popup, so in the popup.html you do something like this: