JavaScript table onclick
问题 I'm working on creating a game where a proverb is displayed in a table. When you click on one of the letters (or td) then it displays the letter. I used Javascript to create the table, after removing spaces/author/etc. Here is the code I used to create the table. function createRow(tableRowId, startIndex, endIndex) { var row = document.getElementById(tableRowId); var index = startIndex; while(index <= endIndex){ //hints array contains the letters to be displayed if(hints[index] != undefined){