Y
Hacker News
new
|
ask
|
show
|
jobs
by
byw
299 days ago
I'm curious if Rust (WASM through JS interop?) also has access to `window.location`, and if the API has some more safety mechanisms.
1 comments
steveklabnik
299 days 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.
link