Obtener el atributo href javaScript
document.getElementById("link")[0].getAttribute("href");
Evil Eel
document.getElementById("link")[0].getAttribute("href");
//Selects all links which have href='http://google.com'
document.querySelectorAll("a[href='http://google.com']");