So, you have the following URL:
You want to get the value after the hash tag (#), which is comment-12
1 2 3 4 5 6 7 8 9 10 11 12 13 14
That’s it. It’s as easy that.
Please let me know if it did or didn’t work for you. Alternatively, if you know of a better way to achieve the same output. Thanks in advance!
Learning & sharing
This is where we store some of our Web Development thoughts, tips and tricks for both our own uses and for others to learn from. Sharing is caring.
Please feel free to contribute to our blog posts; perhaps even teach us a few tricks of your own. We'd love to hear your thoughts.