I have this in my popup.html
<!DOCTYPE html>
<html>
<body>
<button id="button">Starting Now</button>
<script src="jquery-2.1.4.min.js" type='text/javascript'></script>
<script src="popup.js" type='text/javascript'></script>
</body>
</html>
This is my popup.js so far...
function dothis(){
/* ??? */
};
document.addEventListener('DOMContentLoaded', function () {
document.getElementById('button').addEventListener('click', dothis);
});
I want to inject a bit of html code into the web page on button click; I've already included it in my manifest. How do I do this? Sorry, I'm new to this! I've looked around on stack overflow, but I could really understand any of the answers. Thanks in advance!