C
C
Constantius2018-07-04 20:51:51
JavaScript
Constantius, 2018-07-04 20:51:51

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

1 answer(s)
A
Alexander Taratin, 2018-07-04
@the_mooza

location.hash
https://developer.mozilla.org/en/docs/Web/API/Location

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question