HTML DOM Embed Object
Osadź obiekt
Obiekt Embed reprezentuje element HTML <embed>.
Uzyskaj dostęp do osadzonego obiektu
Możesz uzyskać dostęp do elementu <embed> za pomocą getElementById():
Przykład
var x = document.getElementById("myEmbed");
Utwórz osadzony obiekt
Możesz utworzyć element <embed> za pomocą metody document.createElement():
Przykład
var x = document.createElement("EMBED");
Osadź właściwości obiektu
Property | Description |
---|---|
height | Sets or returns the value of the height attribute in an embed element |
src | Sets or returns the value of the src attribute in an embed element |
type | Sets or returns the value of the type attribute in an embed element |
width | Sets or returns the value of the width attribute in an embed element |
Standardowe właściwości i zdarzenia
Obiekt Embed obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Samouczek HTML: wtyczki HTML
Odniesienie HTML: tag HTML <embed>