javascript Simple Example of Using the Browser's History API This little History API demo hooks in to the browser button. We ran it using the the Firefox Developer Console. The demo does three things: Adds an onpopstate = (e) => console.log(e.