Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
A script may not run as expected in Windows Internet Explorer when you open an HTML page and the HTML page contains an element that has injected HTML code
Article ID: 948550 - View products that this article applies to.
When you use Windows Internet Explorer to open an HTML Web page and the Web page contains an element that has injected HTML code, the script may not run as expected. This problem occurs if the following conditions are true:
This issue occurs because Internet Explorer sets the security of an element as "about:blank" if the following conditions are true:
To resolve this issue, make sure that the element is included in the markup tree. When you do this, the element obtains the security from the current page. To do this, call the innerHTML property before you call the element in the script.
The following code example illustrates how to include the element inside the markup tree.