get element by attribute rel code example
Example: javascript get element by rel attribute
document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";
document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";