I have this field
In IE9 the following line gives me the error 'SCRIPT601: Unknown runtime error ' //option 1. document.getElementById('code').innerHTML = 'some text';
The error disappears and it seems to work (assiging empty value) when I change the line to: //option 2. document.getElementById('code').innerHTML = '';
The I tried this: //option 3. document.getElementById('code').innerHTML = escape('some text');
but then the HTML gets to be escaped and thats not what I want, I want this exact string to be placed in the textbox.
In Chrome and Firefox the code in option 1 does run correctly.
What can I do to fix this?