Is possible read the browser history with Javascript? If the answer is Yes, how can I do it? I want to read it and save it in a JS variable.

有帮助吗?

解决方案

No. Other sites visited by a user are their business, not the business of every website they visit. Browsers do not expose that information to web sites.

Browsers go to pretty serious lengths to plug anything that could leak a user's history to websites

其他提示

In general history is protected by the browser against javascript accessing it except through back and forward functionality.

Source From : Access my entire browsing history via Javascript

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top