Reading the controls using getElementsByTagName is very common practice to read the element. However I would like to know that whether we can trust the order in whi
getElementsByTagName
This function always return elements in the same depth-first order. This is the order, in which they appear in HTML tree structure.