how to get element by title js

JavaScript
var node = document.querySelector('[title="element title attribute value"]');
Source

Also in JavaScript: