Home >Web Front-end >JS Tutorial >Solution to 'Unknown runtime error' prompt under IE8 when js plug-in sets innerHTML_javascript tips
The example in this article describes the solution to the "unknown runtime error" prompt under IE8 when the js plug-in sets innerHTML. Share it with everyone for your reference. The specific analysis is as follows:
Problem description:
A js plug-in is used in the website. When setting innerHTML, an "Unknown runtime error" error is reported under IE8:
<div id="divContainer"> <a name="link"> -->报错处 第三方插件内容… </a> </div>
Reason:
The innerHTML object set is an 3499910bf9dac5ae3c52d5ede7383485, because the object of 3499910bf9dac5ae3c52d5ede7383485 is relatively low-inclusive. When the browser runs this script, a runtime error is detected.
Solution:
Replace the 3499910bf9dac5ae3c52d5ede7383485 tag with the dc6dce4a544fdca2df29d5ac0ea9906b tag.
I hope this article will be helpful to everyone’s JavaScript programming design.