-----------------------------------------
<div id="tik">
<a>link</a>
</div>
<script>
var mydiv = document.getElementById("tik");
var aTag = document.createElement('a');
aTag.setAttribute('href',"yourlink.htm");
aTag.innerHTML = "link text";
mydiv.appendChild(aTag);
</script>
---------------------------------
<div id="tik">
<a>link</a>
</div>
<script>
var mydiv = document.getElementById("tik");
var aTag = document.createElement('a');
aTag.setAttribute('href',"yourlink.htm");
aTag.innerHTML = "link text";
mydiv.appendChild(aTag);
</script>
---------------------------------
No comments:
Post a Comment