Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
byw
4 months ago
|
parent
|
context
|
favorite
| on:
Unexpected productivity boost of Rust
I'm curious if Rust (WASM through JS interop?) also has access to `window.location`, and if the API has some more safety mechanisms.
steveklabnik
4 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: