<html>
<head>
<script>
function getTheValue()
{
}
</script>
</head>
<body>
<div>
<a href="http://google.com">
<span class="text">Google</span>
</a>
</div>
<div>
<a href="http://yahoo.com">
<span class="text">Yahoo</span>
</a>
</div>
<input type="button" value="get" onclick="getTheValue()"></input>
</body>
</html>
Hi the above is my code in the I want the "href" value of yahoo using javascript but here I don't have any different classes but based on the child "span" value that is "Yahoo" I need to retrieve that "a" tag "href" value how?