Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
byw
· 1y ago · 0 comments
I'm curious if Rust (WASM through JS interop?) also has access to `window.location`, and if the API has some more safety mechanisms.
Comments
[–]
steveklabnik
1y ago
web_sys lets you call window.location, which returns a Location, which has href and set_href methods. They do the same thing the native APIs do, as that is their purpose.