T
T
timtimIT2015-12-01 18:10:17
css
timtimIT, 2015-12-01 18:10:17

How to hide some blocks if the page has already been viewed (or a similar page)?

Hello.

How to hide some blocks if the page has already been viewed (or a similar page)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Pautov, 2015-12-01
@bootd

Use cookies . When you first visit the page, we write it to the browser's memory, and then we check it. If it is, then we do something!

S
Stalker_RED, 2015-12-01
@Stalker_RED

If you hide these blocks on the server, then yes, you can use cookies. If everything happens on the client, then localStorage is better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question