function onGoBack() {
console.log("Gone back");
}
function onError(error) {
console.log(`Error: ${error}`);
}
let goingBack = browser.tabs.goBack();
goingBack.then(onGoBack, onError);tabs.goBack() / notebook
tabs.goBack()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.