H
H
habrdima2015-04-07 20:56:13
JavaScript
habrdima, 2015-04-07 20:56:13

ExecuteScript does not add Russian text via innerHTML, Why?

Here is the code

var E = document.getElementById('main');
var d = document.createElement('div');
d.id='sk';
    d.innerHTML = 'hdsfgsdh';//так работает, но стоит поменять на это
    d.innerHTML = 'авпвро';//не работает, не добовляет
E.insertBefore(d, E.children[1]);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question