get href attribute javascript
snippet in javascript

javascript find all href with same value

user1062

//Selects all links which have href='http://google.com'
document.querySelectorAll("a[href='http://google.com']");

get href attribute javascript

user8403

document.getElementById("link")[0].getAttribute("href");