Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/imports/happy_dom.ts>Location

Work-in-progress front-end tool which does put a smile on my face
Latest
class Location
extends URL
Re-export
import { Location } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Constructors

new
Location()

Constructor.

Methods

assign(url: string): void

Loads the resource at the URL provided in parameter.

Note: Will do the same thing as "replace()" as server-dom does not support loading the URL.

reload(): void

Reloads the resource from the current URL.

Note: Will do nothing as reloading is not supported in server-dom.

replace(url: string): void

Replaces the current resource with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.