Push link inside html using javascript

Posted by vetri on Stack Overflow See other posts from Stack Overflow or by vetri
Published on 2010-05-24T13:48:30Z Indexed on 2010/05/24 13:51 UTC
Read the original article Hit count: 275

Filed under:
|

I have a div tag

<div id="img"> <div>

and a script in page

<script type="text/javascript"> function img(){ document.getElementById('img').innerHTML="<a href="/lime/link.html"><img src="/lime/img.png"></a>";} </script>

how to put the image on the div with link on pageload.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom