javascript get all elements with type code example Example: get all a tags javascript document.anchors