How to find out if the site is the first in history? This does not work for security reasons:
if(window.history.item(0)==window.location.href)
For security reasons, the History object does not allow unprivileged code to access the URLs of other pages in the session history, but it allows it to navigate through the session history.
From: Mozilla Developer Center: window.history
You can not.
The user's browsing history is private information and cannot be read using Javascript.
Source: https://habr.com/ru/post/1739590/More articles:Removing and animating a GridView row - Android - androidPlace a UIView in the middle of a UITableView with the CGRectZero framework - iphoneHow to see the code generated by the compiler - c ++Не удалось установить mysql на cygwin, не найдено библиотеки curses/termcap - mysqlC # Dispose () -completion - c #Why do I get segfault at the end of the application after everything is done correctly? - cHow to store arrays in one array - javaКак удалить параметры из элемента select с помощью jquery? - javascriptLooking for a jquery plugin to resize / expand your browser if it is too small? - jqueryDAO layer and services in Spring: session management - javaAll Articles