document.writeln("<img src=\\"someimage.jpg\\" />");
and would be output as
<!-- code output by above js file: -->
<a href="someThirdPartyLink.html"><img src="someImage.jpg" /></a>
Can you think of any way that I could get the output code from the second JS file to remain inside of the div created by the first JS file?
Thank you very much for your time and willingness to help.
Thanks for your quick reply. Unfortunately, I can't do it like that since other ads also rely on the code we already have in place, and the HTML for each is different.
you can do it like this
var div = document.createElement('div');
var scr = document.createElement('script');
I hope this can help you.