javascript find all href with same value
snippet in javascript

javascript find all href with same value

user6980

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

get href attribute javascript

user9232

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