Why is document.getElementById('tableId')[removed] not working in IE8?

前端 未结 8 2081
迷失自我
迷失自我 2020-12-01 14:17

I modify document.getElementById(\'\').innerHTML with Java Script in a page. It\'s working fine in Firefox, but not IE8. Please see below for more details:

8条回答
  •  Happy的楠姐
    2020-12-01 14:45

    innerHTML is readonly for as pointed out here: http://msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx

    The property is read/write for all objects except the following, for which it is read-only: COL, COLGROUP, FRAMESET, HEAD, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR.

    Why are you not just putting an idea around the and changing that particular value?

提交回复
热议问题