From f912205735251c4d47a7fceb5c30719790780666 Mon Sep 17 00:00:00 2001 From: muktar1907 Date: Wed, 24 Apr 2024 01:28:34 -0500 Subject: [PATCH] selection events --- html/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/index.html b/html/index.html index 070ac70..c2b0891 100644 --- a/html/index.html +++ b/html/index.html @@ -196,8 +196,7 @@

The Word Search Game

//create cells and add it to the row const cell = document.createElement("td"); cell.setAttribute("id",k.toString()); - cell.setAttribute("onclick","buttonClick(k,1)"); - cell.setAttribute("onmouseover","buttonClick(k,2)"); + const cellText=document.createTextNode(`${k}`); cell.appendChild(cellText);