-
-
Notifications
You must be signed in to change notification settings - Fork 261
BrowserPage.goBack()
David Ortner edited this page Sep 28, 2025
·
1 revision
Navigates back in history. The promise is resolved after the content has been loaded into the window.
goBack(options?: IGoToOptions): Promise<Response | null>;| Parameter | Type | Description |
|---|---|---|
| options? | IGoToOptions | Options (Optional) |
Promise<Response | null>
import { Browser } from "happy-dom";
const browser = new Browser();
const page = browser.newPage();
await page.mainFrame.goBack();
await browser.close();
Help Packages