javascript get element by tag code example
Example 1: document get element by tag
var list = document.getElementsByTagName("UL")[0];
list.getElementsByTagName("LI")[0].innerHTML = "Milk";
Example 2: get all a tags javascript
document.anchors
var list = document.getElementsByTagName("UL")[0];
list.getElementsByTagName("LI")[0].innerHTML = "Milk";
document.anchors