diff --git a/html/index.html b/html/index.html
index 8c304f3..8080815 100644
--- a/html/index.html
+++ b/html/index.html
@@ -219,11 +219,11 @@
The Word Search Game
{
cells[i].addEventListener("click",function()
{
- buttonEvent(cells[i].toString(),0);
+ buttonEvent(this.getAttribute("id"),0);
});
cells[i].addEventListener("mouseover",function()
{
- buttonEvent(cells[i].getAttribute("id"),1);
+ buttonEvent(this.getAttribute("id"),1);
});
}
}