showing results for - "history state"
Niclas
03 Nov 2020
1// Should be null because we haven't modified the history stack yet
2console.log(`History.state before pushState: ${history.state}`);
3
4// Now push something on the stack
5history.pushState({name: 'Example'}, "pushState example", 'page3.html');
6
7// Now state has a value.
8console.log('History.state after pushState: ', history.state);