+ 3
How to inject <script> with innerHTML?
For example, it SHOULD work like this (I know it's a silly example): <div id="div"></div> <script> var div = document.getElementById(div); div.innerHTML = <script>document.write("test"); </script> </script>
4 ответов
+ 1
Andrew G How should I use eval()?
+ 1
Thank you it works!