I'm having trouble inserting this code into my HTML page:
<script type="text/javascript">
var1 = "1";
var2 = "2";
var3 = "3";
</script>
<script type="text/javascript" src="http://www.someadress.com/sss.js"></script>
<noscript><a href="http://someadress" target="_blank"><img src="someimg" width="468"
height="60"></a></noscript>';
I've tried using innerhtml, but it just doesn't seem to work. Here is an example of what i have tried; I'm trying to add the script inside the element with ID allImages:
var imagesHTML = document.getElementById("allImages").innerHTML;
imagesHTML = '<script type="text/javascript">
var1 = "1";
var2 = "2";
var3 = "3";
</script>
<script type="text/javascript" src="http://www.someadress.com/sss.js"></script>
<noscript><a href="http://someadress" target="_blank"><img src="someimg" width="468"
height="60"></a></noscript>';