Show the href of each Link with Style
javascript:(function()
{
var report;
var theLinks = document.getElementsByTagName("A");
var i;
for (i = 0; i < theLinks.length; i++)
{
theLinks[i].style.backgroundColor = "aqua";
theLinks[i].style.fontWeight = "bold";
theLinks[i].style.color = "black";
report += theLinks[i].href;
report += "\n";
}
alert(report);
}());
{
var report;
var theLinks = document.getElementsByTagName("A");
var i;
for (i = 0; i < theLinks.length; i++)
{
theLinks[i].style.backgroundColor = "aqua";
theLinks[i].style.fontWeight = "bold";
theLinks[i].style.color = "black";
report += theLinks[i].href;
report += "\n";
}
alert(report);
}());