I have a script in my popup.html:
</body>
<script src="popup.js"></script>
</html>
Through which I am trying to obtain the DOM of a particular tab. More specifically, I am attempting to determine the existence of a particular element on the current page in a specific tab and then use this information within popup.js. How would I go about doing this?