I encountered an issue with an Invalid Argument script error in Windows 10 using IE 11. However, the code runs smoothly on Windows 7. Please refer to the attached screenshot and see if anyone can offer assistance. Here is the code snippet:
var tbl = document.getElementById('packageMaterial');
var lastRow = tbl.rows.length;
var row = tbl.insertRow(lastRow);
var td1 = row.insertCell(0);
var td2 = row.insertCell(1);
var td3 = row.insertCell(3);
td1.innerHTML = "test1";
td2.innerHTML = "test2";
td3.innerHTML = "test3";
The problem seems to be that I am missing two arguments in creating the cell. Although this code functions correctly in a Windows 7 environment, it triggers an Invalid Argument script error in Windows 10's Internet Explorer 11. Please see the error details in the attached screenshot.