If anyone could help me with me this, it would very appreciative.
I'm trying to extract the string that comes after the last question mark ('rrrrrrrrrrrrrrrrrrrr' in the following example):
from:
to:
rrrrrrrrrrrrrrrrrrrr
I've tried this code, but it doesn't give the right result:
document.getElementById("demo").innerHTML = window.location.search.slice(1);