Expand description
utility functions
Functionsยง
- body
- provides access to the document body
- document
- provides access to the document element
- get_
location_ hash - return the hash part of the browser current url location
The hash part are the text right after the
#
sign - get_
window_ size - return the size of the browser at this moment
- history
- utility function which returns the history api of the browser
- inject_
style - inject style to document head
- now
- return the instantaneous time
- performance
- provides access to the window Performance api
- scroll_
window_ to_ top - scroll the browser to the top of the document
- set_
location_ hash - set the browser location hash
- set_
window_ title - set the title of the document
- spawn_
local - Runs a Rust
Future
on the current thread. - window
- utility function which returns the Window element