Answer the question
In order to leave comments, you need to log in
How to implement anchor checking in a link using JS?
Hello, I'm making a site, on it you need to check the anchor in the page address, and with different values of it, load different files in a div using AJAX. The question is how to check the anchor in the site address using JS?
PS I used Google, searched on the toaster and stackoverflow, but did not find what I need
Answer the question
In order to leave comments, you need to log in
location.hash
https://developer.mozilla.org/en/docs/Web/API/Location
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question