get elem ()ts code example Example: how to get element by title js var node = document.querySelector('[title="element title attribute value"]');