Skip to main content

Module utils

Module utils 

Source
Expand description

Helper functions for accessing DOM environment

Functionsยง

body
Return the body element of the current document
document
Return the current browser web_sys::Document element
location
Return the global web_sys::Location object, resolving it from the JavaScript global scope (works in both window and worker contexts).
window
Return the current browser web_sys::Window element