How does the data on the site change without an ajax or url request?

I looked at https://www.dotnetperls.com/ , and when I click the "C #" link on the page, the page loads with different content and I do not see any ajax request on the "Network" tab in the browser and the URL does not change there either .

How is this achieved?

+4
source share
2 answers

This is because the content is already uploaded to the page when you first visit the site. If you look at event listeners in Chrome for a link, you will see that javascript is connected to change the displayed HTML element when clicked.

+5
source

, "#", JavaSript - .

" " "#", , "" , .

+4

Source: https://habr.com/ru/post/1687026/


All Articles