history.go(-1);History: go() method / notebook
History: go() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
history.go(1);history.go(2);history.go(-2);history.go();
history.go(0);