Is there anyway I can get all of the <a> in a page, I want to apply a new targets to all of them.
You can use
document.links
or in jQuery
$('a')
or in DOM
document.getElementsByTagName('a')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With