Pergunta

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.

Foi útil?

Solução

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top