let table = document.getElementById(TABLE_NAME);
let nextRow = table.tBodies[0].rows.length;
row.setAttribute('style', "cursor: pointer;");
I am trying to implement a double click event on a table row, which is working as expected in most browsers but facing issues in Internet Explorer. To handle styling, I have the following code:
let cell2 = row.insertCell(1);
let browser = navigator.appName;
if(browser === "Microsoft Internet Explorer") {
cell2.style.setAttribute("cssText", "color:black; width:300px;");
} else {
cell2.setAttribute("style", "color:black; width:300px;");
}
Any suggestions on how to add a double click event that will work correctly in Internet Explorer?