find a element in js element code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: get all a tags javascript
document.anchors
var element = document.getElementById("YourElementId");
document.anchors