Debugging IE8 Javascript Replace innerHTML Runtime Error

前端 未结 10 1034
执笔经年
执笔经年 2020-12-09 17:33
function DeleteData(ID)
{
 var ctrlId=ID.id;

 var divcontents=document.getElementById(ctrlId).innerHTML;
 var tabid=ctrlId.replace(/div/,\'tab\');
 var tabcontents=         


        
10条回答
  •  余生分开走
    2020-12-09 17:41

    This is not a Big issue, since i faced same problem few days ago and the reason this error occurs in ie is that - There exists an error in our html format or you are using an element other than to replace innerHTML ie use only, dont use tables,divs to replace innerHTML.

    • SwapnilK

提交回复
热议问题