From c965048607257b4ed5df6944ee71ea6b35b0cf07 Mon Sep 17 00:00:00 2001 From: Bhumika-Raut <144891672+Bhumika-Raut@users.noreply.github.com> Date: Thu, 7 Dec 2023 18:03:23 +0530 Subject: [PATCH] Update app.js --- app.js | 5 +++++ 1 file changed, 5 insertions(+) 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" +}