Skip to main content

location

Function location 

Source
pub fn location() -> Result<Location, JsValue>
Expand description

Return the global web_sys::Location object, resolving it from the JavaScript global scope (works in both window and worker contexts).