top | item 45046762 (no title) byw | 6 months 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. discuss order hn newest steveklabnik|6 months 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.
steveklabnik|6 months 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.
steveklabnik|6 months ago