Fix "unknown runtime error" in IE8

I donโ€™t see anyone else trying to do what I am ... LOADS people want to replace some node using the innerHTML property, but I not only want to do this, but I also want to replace it with javascript.

Here is my sample script that works fine in all versions of Firefox: http://syn4k.site90.net/working_test/ EDIT: If the above link doesn't work, try the following: http://www.syn4k.freehosting.com/working_test/

You will notice that it does NOT work in IE8. I assume that it does not work in any version of IE ...

The process that I created by reference is simple: 1. The user clicks on the process. 2. A new window opens. 3. Data from a new window is sent back to the opener and inserted into the DOM. 3.Note. The data sent is javacript and should run the same as in Firefox.

-3
source share
1 answer

I looked before your hosting became dowm; You cannot set innerHTML to a script node in IE, instead you need newdiv.text = your_string_with_js; (or add createTextNode() to it).

+8
source

All Articles