<script>var obj=document.body.getElementsByTag("a");for(var i=0;i<obj.length;i++) alert(obj[i].getAttribute('href'));</script>