Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Enable/Disable browser history through js

can we enable or disable browser history through java script code ?? If possible please tell me the mechanism to do this .

like image 398
Santhosh Avatar asked Dec 25 '22 17:12

Santhosh


1 Answers

I think it is not possible.

Can you try using document.location.replace() it is used to clear the last entry in the history and replace it with the address of a new url.

like image 106
Dinesh Kumar Avatar answered Dec 31 '22 12:12

Dinesh Kumar