I'm trying to change the color of the two last word of a string.
I was trying in pure CSS, but no :last-word(s) exists, so...
I don't want to include jQuery just to do this.
<h1 id="Title">My extra super title</h1>
I tried this to get the last two. But it seems that SPLICE isn't the best option?
var h1 = document.getElementById("Title").innerHTML;
var h1 = h1.split(" ").splice(-2).join(" ");