3 ms·
It seems like this happened: 1. I clicked the keyboard shortcut for back 2. newyorker.com put a popup div about email lists or whatever 3. I clicked the keyb
by jancsika 8y ago
It seems like this happened:
1. I clicked the keyboard shortcut for back
2. newyorker.com put a popup div about email lists or whatever
3. I clicked the keyboard shortcut for back again and it went back.
So I had to click the keyboard shortcut twice.
Can this be?
- jazzyjackson 8y agoYes, 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