diff --git a/src/main/resources/static/js/matchDetail.js b/src/main/resources/static/js/matchDetail.js
index 85ae5c2c7fd346128501164f943e6b6cc2029765..0cb7b2fe9a9018dbffd183c1d5ba1a5e99916b77 100644
--- a/src/main/resources/static/js/matchDetail.js
+++ b/src/main/resources/static/js/matchDetail.js
@@ -8,6 +8,11 @@
 
     const matchInfo = document.getElementById('matchInfo');
     const matchScore = document.getElementById('matchScore');
+    // btn give the id
+    const updateBtn = document.getElementById("updateBtn");
+        updateBtn.addEventListener('click', function (){
+            window.location.href = `/html/matchDetailChangeScore.html?id=${id}`;
+        })
     matchScore.innerHTML = `<p><strong></strong>${matchData.scoreA} - ${matchData.scoreB}</p>
 `
     matchInfo.innerHTML = `