Home > Web Front-end > JS Tutorial > body text

Solution to 'Unknown runtime error' prompt under IE8 when js plug-in sets innerHTML_javascript tips

WBOY
Release: 2016-05-16 16:02:16
Original
1343 people have browsed it

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>
Copy after login

Reason:

The innerHTML object set is an , because the object of is relatively low-inclusive. When the browser runs this script, a runtime error is detected.

Solution:

Replace the tag with the

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template