Why
$(function () { $(window).bind(\'popstate\', function () {alert(\'pop\');}); window.history.pushState(null, \'\', \'/foo\'); });
The paragraph you reference is a little ambiguous. Reading the example on the same page, it is clear that popstate is only triggered when the user clicks the back button, not when the script calls pushState().
pushState()