How to detect the page is open by clicked “Open link in new tab”

I have home page, includes many anchor links to view movies.
As I need to track if user open the link from the home page, by right click “Open link a new tab”, or they directly open the link (like when they copy the link from somewhere then paste to browser).

For example, when view page X, how to know if this page is opened from the Home Page by click “Open link in new tab”.

Is there a way to do this by raw Javascript?
I would like to avoid using local storage, session storage or cookie.
Thanks