Any one knows a way to get all the URLs in a website using JavaScript?
I only need the links starting with the same domain name.no need to consider other links.
using jquery u can find all the links on the page that match a specific criteria
$("a[href=^domain.com]").each(function(){ alert($(this).attr("href")); });