WorkerLocation: hash-Eigenschaft
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since Juli 2015.
Hinweis: Diese Funktion ist nur in Web Workers verfügbar.
Die hash-Eigenschaft eines WorkerLocation Objekts gibt den hash-Teil des Standorts des Workers zurück.
Wert
Ein String.
Beispiele
js
// In a Web worker, on the page https://big.rakal.top/en-US/docs/Web/API/WorkerLocation/hash#examples
const result = location.hash; // Returns '#examples'
Spezifikationen
| Specification |
|---|
| HTML> # dom-workerlocation-hash> |
Browser-Kompatibilität
Loading…
Siehe auch
- Das
WorkerLocationInterface, zu dem es gehört.