Baseline Widely available
Die HTMLIFrameElement.src
ist ein String, der das HTML-Attribut src
widerspiegelt und die Adresse des einzubettenden Inhalts enthält.
Beachten Sie, dass das programmgesteuerte Entfernen des src
-Attributs eines <iframe>
(z. B. über Element.removeAttribute()
) dazu führt, dass about:blank
im Frame geladen wird.
const iframe = document.createElement("iframe");
iframe.src = "/";
const body = document.querySelector("body");
body.appendChild(iframe); // Fetch the image using the complete URL as the referrer
Spezifikationen Browser-Kompatibilität Siehe auch MDN-Feedback-Box War diese Ãbersetzung hilfreich?
Diese Seite wurde automatisch aus dem Englischen übersetzt.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4