Beispiel: Browser-Back-Button mit JavaScript abfangen

Könnte evtl. vielleicht einmal nützlich sein: window.onload = function () {     console.log(„onload“);     if (typeof history.pushState === „function“) {         history.pushState(„jibberish“, null, null);         console.log(„jibberish“);         window.onpopstate = function () {           history.pushState(’newjibberish‘, null, null);             // Handle the back (or forward) buttons here             // Will NOT handle refresh, use onbeforeunload for this. … Weiterlesen