I have a popup.html, and what I thought was pretty simple listener event.
This is my popup.html:
<!DOCTYPE html>
<html>
<body>
<button id="button">Starting Now</button>
<script>
function blah(){
alert("blah");
}
$(document).ready(function(){
document.getElementById('button').addEventListener("click", blah);
});
</script>
</body>
</html>
There's no alert when I press the button; what am I doing wrong?