A
A
Anton2020-04-16 10:25:32
JavaScript
Anton, 2020-04-16 10:25:32

How to make normal navigation if the site works on ajax?

How to make a normal link structure, and that they would be recorded in the history, and if the client wants to return to the previous page, the page will be dreaming at the url that is recorded in the history?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2020-04-16
Veida @aveyda7

pajax, history.pushstate and that's it...

S
Stepan Krapivin, 2020-04-16
@xevin

look at the router.
There are a lot of ready-made routers in JS, there are articles that describe how to write your own router

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question