how to get all html elements in javascript code example Example: get all a tags javascript document.anchors