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