diff --git a/app.js b/app.js index 030bec2..fb91034 100644 --- a/app.js +++ b/app.js @@ -1,2 +1,7 @@ // Iteration 1: Making the play button in the index.html functional. // Description: When the play button is clicked the game.html page should be opened +const $play = document.getElementById("play-button"); + +$play.onclick = function(){ + location.href ="./game.html" +}