JavaScript Get Element by rel Attribut

document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";
Modern Mouse