document.write('<img src="http://xyz.com/banner.png">') works fine. However, variation of the following do NOT work for me in Firefox or IE8:
document.write('<img src="banner.png">') where the image is in the same folder with the script.
Anybody know why?
I tried img src="./banner.png"> and such. I would like to avoid having to use the complete path.
Thanks