i have the folowing code:
window.document.getElementById("bufferTopic").innerHTML = "<img src='einstein/einstein.png' width='800' height='600'><script type='text/javascript' language='javascript'>alert('test');</script>"
i have it within a script file. the idea is to cache some images inside a div and when it completes run a script.
but it is not working.
any comments on why it is not working?
thanks.
EDIT: the script loads the image alright though.