Let’s say your link element (HTMLLinkElement)  is enclosed in a div with an id attribute "div1":

<div id=’div1′><a href=’somepage.html’>Go to some page </a></div>

Now to get to the text value of the link, first get a reference to the div element:

var oDiv = document.getElementById(’div1′);

and then use the innerHTML property

 alert(oDiv.firstChild.innerHTML);

This would work only if there is no whitespace or other elements between the opening div tag and the link.
If we know that the link  we want to get to is the first or only link in that div element we can use the following code:

var oAnchor = oDiv.getElementsByTagName("a").item(0);
 alert (oAnchor.innerHTML);

If you want to strictly follow the DOM specification, use the data property of a CharacterData object:

alert (oAnchor.firstChild.data);

You can also use the nodeValue property of a Node object:

alert(oAnchor.firstChild.nodeValue); 

HTMLLinkElement object properties and methods are listed here