pub fn window() -> Window
Returns the Window.
Window
This is cached as a thread-local variable, so calling window() multiple times requires only one call out to JavaScript.
window()