I need to the anchor out of a window.location
in JavaScript, such as the following url:
http://www.example.com/page.html#anchor1
What's the easiest method?
window.location.hash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With