Changes in DOMElement

Added some additional function to check a DOMElement for its type e.g.,
fit its a hyperlink or a button