If you're looking for a solution using jQuery, here's one approach you could take:
$('script').each(function(){
var file = $(this).attr("src");
$("#result").append(file + "<br />");
});
$('link').each(function(){
var file = $(this).attr("href");
$("#result").append(file + "<br />");
});
$('img').each(function(){
var file = $(this).attr("src");
$("#result").append(file + "<br />");
});
Check out the demonstration on this JSFiddle link.
If you prefer a pure JavaScript solution, you can try something like this:
var script = document.getElementsByTagName("SCRIPT");
for (var i = 0; i < script.length; i++) {
document.getElementById("result").innerHTML += script[i].src + "<br />";
}
var image = document.getElementsByTagName("IMG");
for (var i = 0; i < image.length; i++) {
document.getElementById("result").innerHTML += image[i].src + "<br />";
}
var link = document.getElementsByTagName("LINK");
for (var i = 0; i < link.length; i++) {
document.getElementById("result").innerHTML += link[i].href + "<br />";
}
Here is the JSFiddle showcasing the implementation with pure JavaScript: http://jsfiddle.net/Lotc8dda/