javascript selector element by href code example
Example 1: javascript find all href with same value
//Selects all links which have href='http://google.com'
document.querySelectorAll("a[href='http://google.com']");
Example 2: javascript find link by href
//Selects all links with href='http://domain.com'
document.querySelectorAll("a[href='http://domain.com']");