EventSource: url-Eigenschaft
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die schreibgeschützte url
-Eigenschaft des EventSource
-Interfaces gibt einen String zurück, der die URL der Quelle darstellt.
Wert
Ein String, der die URL der Quelle darstellt.
Beispiele
js
const evtSource = new EventSource("sse.php");
console.log(evtSource.url);
Hinweis: Ein vollständiges Beispiel finden Sie auf GitHub — siehe Einfaches SSE-Demo mit PHP.
Spezifikationen
Specification |
---|
HTML # dom-eventsource-url-dev |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.