Push link inside html using javascript
- by vetri
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.