-
-
Notifications
You must be signed in to change notification settings - Fork 210
BrowserPage.reload()
David Ortner edited this page Jan 12, 2024
·
1 revision
Reloads the current URL.
reload(options?: IGoToOptions): void;
Parameter | Type | Description |
---|---|---|
options? | IGoToOptions | Options (Optional) |
void
import { Browser } from "happy-dom";
const browser = new Browser();
const page = browser.newPage();
// Reloads the current URL.
await page.reload({
referrer: 'https://github.com/capricorn86/happy-dom/',
referrerPolicy: 'origin-when-cross-origin'
});
await browser.close();