Title should make my problem well described.Here goes my code.
Some text
You are missing a firstChild:
alert(document.getElementById("adiv").firstChild.firstChild.nodeValue);
(I know it sounds weird but this is how text nodes work)
In order to get [merged] text content of an element node:
function vb(){
var textnode = document.getElementById("adiv").firstChild;
alert(textnode.textContent || textnode.innerText);
}
In order to get text content of a text node:
function vb(){
alert(document.getElementById("adiv").firstChild.firstChild.nodeValue);
}
<text>
node is not supported in IE 7.