HTML DOM встроить объект
Встроить объект
Объект Embed представляет элемент HTML <embed>.
Доступ к встроенному объекту
Вы можете получить доступ к элементу <embed> с помощью getElementById():
Пример
var x = document.getElementById("myEmbed");
Создать встроенный объект
Вы можете создать элемент <embed> с помощью метода document.createElement():
Пример
var x = document.createElement("EMBED");
Свойства встроенного объекта
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 |
Стандартные свойства и события
Объект Embed также поддерживает стандартные свойства и события .
Связанные страницы
Учебное пособие по HTML: подключаемые модули HTML
Справочник по HTML: HTML-тег <embed>