Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm curious if Rust (WASM through JS interop?) also has access to `window.location`, and if the API has some more safety mechanisms.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: