hi,
im using this javascript..
document.getEle mentById(link). src="test.png"
and this html
<img id="link" src="">
it works fine and sets the html src to test.png - but as soon as i put the <img> tag inside a div - it wont display
e.g.
<div id="doesntworkn ow">
<img id="link" src="">
</div>
Any ideas ? thanks!
im using this javascript..
document.getEle mentById(link). src="test.png"
and this html
<img id="link" src="">
it works fine and sets the html src to test.png - but as soon as i put the <img> tag inside a div - it wont display
e.g.
<div id="doesntworkn ow">
<img id="link" src="">
</div>
Any ideas ? thanks!
Comment