I\'m Developing a basic Chrome extension centred around a video game. In order to create the menu I have used HTML and come up with:
<
You only need to pass the reference, as second parameter is a callback
document.querySelector("#startButtonImage").addEventListener('click', startGame); document.querySelector("#infoButtonImage").addEventListener('click', openInfo);