WorkerLocation: href-Eigenschaft

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

We'd love to hear more about your role and the company you work for
Please help us by answering a few questions.

Hinweis: Diese Funktion ist nur in Web Workers verfügbar.

Die href-Eigenschaft eines WorkerLocation-Objekts gibt einen String zurück, der die serialisierte URL für den Standort des Workers enthält.

Wert

Ein String.

Beispiele

js
// In a Web worker, on the page https://developer.mozilla.org/en-US/docs/Web
const result = location.href; // Returns 'https://developer.mozilla.org/en-US/docs/Web'

Spezifikationen

Specification
HTML
# dom-workerlocation-href

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
href

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch