javascript document.getElementById not working
<p>Following is my javascript program. I am trying to get all child  tags of parent div tag but when I am running the program document.getElementById('abc') returning null.</p>

<pre><code>function init(){
//               currentDiv = document.getElementById("intro");
                alert("working");
                count = 0;
                divs = document.getElementById('abc').getElementsByTagName("div");

                alert("HI " + divs)
                currentDiv = divs[count];
                nextDiv = divs[count + 1]
                count = count + 1;
            }

window.onload = init();
</code></pre>

<p>Following is my div tag definitions:</p>

<pre><code>&lt;div id='abc'&gt; 
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>thanks.</p>
