javascript create and append element function not work
<p>this is my javascript function :</p>

<pre><code>function createLink (){
    var link = document.createElement("a");
    link.href = "#";
    var linkText = document.createTextNode("This is dynamic link");
    link.appendChild(linkText);
    document.body.appendChild(link);
}
</code></pre>

<p>window.onload = createLink;</p>

<p>but i am not get any result from this. any one know, what is wrong with my code?</p>
