how ot get value of a specific atrtribute of tag in htm code example Example: dom element get attribute document.getElementById('id1').getAttribute('attribute');