Change text by HTML Id using Javascript

I will share tips on how to replace context menu using Javascript. For example, you want to change the text "Older posts" to text that you want (like the example below)

Before-changed

become
After-changed

copy the code below!

<script>
document.getElementById("Blog1_blog-pager-older-link").innerHTML=">>";
document.getElementById("Blog1_blog-pager-newer-link").innerHTML="<<";
</script>


Paste the javascript code above where you usually put the javascript code on your blog. This technique is only applicable if Javascript is allowed in the browser.


Keyword: how to change context menu | how to change context menu using javascript | how to change navigation text using javascript

You may also like: