I want to match all a tags that have example.com/app in the href. How can I do this with JavaScript?
a
example.com/app
href
You can use querySelectorAll with a css attribute selector:
querySelectorAll
document.querySelectorAll('a[href="www.example.com"]')