For example, I have a URL as :
I want a js code to return just value2x
.
I tried location.hash.split('=')[1]
but that results the first hash value like if url is
It returns fdg&hash
.
I want just the value of hash
.
NO jQuery Please.
Thanks for the help in advance.