(type, targetInfo)
| 78 | |
| 79 | // description string for click elements |
| 80 | function setInnerText(type, targetInfo) { |
| 81 | innerText = type +': ' + targetInfo; |
| 82 | } |
| 83 | // if clicked element is '<button>', check innerText, then id, then className for descriptor |
| 84 | if (localName === 'button') { |
| 85 | if (e.target.innerText) { |