2 ms·
Yes, thanks to a modern web browser api called `history.pushState` web sites can modify your history [0]. Useful for single page apps where you want the back bu
by jazzyjackson 8y ago
Yes, thanks to a modern web browser api called `history.pushState` web sites can modify your history [0]. Useful for single page apps where you want the back button to revert the page to previous states as if they were previous 'pages', abused by web publications the world over to insert a phantom subscription nag page to their website.
But if pushState didn't exist they could probably just hit that nag-page first and then load the desired page, hopefully fast enough for you not to notice.
[0] https://developer.mozilla.org/en-US/docs/Web/API/History_API https://developer.mozilla.org/en-US/docs/Web/API/History_API