get all a tags javascript

JavaScript
document.anchors
Source

Also in JavaScript: