<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<a href="aa.com">aa</a>
<a href="bb.com">bb</a>
<a href="cc.com">cc</a>
<br />
<script type="text/JavaScript">
var links = document.links;
for(var i = 0; i < links.length; i++)
{
var href = document.createTextNode(links[i].href);
document.write(href.textContent + "<br />");
}
/*
run:
http://localhost:8080/aa.com
http://localhost:8080/bb.com
http://localhost:8080/cc.com
*/
</script></body>
</html>