js select element by rel attribute 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";