How to detect an item on a search results page, was opened on another browser tab

I searched for SO, and this question was asked up to several times , but I did not find answers explaining how the behavior that I want the implementation is actually implemented.

What I mean is to simulate the booking.com function, in which when you open the search result from the list of search results, a div appears indicating that the result was opened on another tab (or window), and disappears when this other tab (or window) has been closed.

Screenshot: enter image description here

, , - javascript , , , URL- , .

, , - , wirehark, ajax . , , , ( , - URL). , URL- , , ( , firefox chrome), ; IP-.

, , - , - cookie, , , . cookie, , , , , , .

?

+5
1

localStorage/sessionStorage, , URL- "", , document.location.

, , , " ", , 30 , .

-, , , , .

+2

All Articles