Obiekt DOM Section HTML
Obiekt Section
Obiekt Section reprezentuje element HTML <section>.
Uwaga:Internet Explorer 8 i wcześniejsze wersje nie obsługuje elementu <section>.
Dostęp do obiektu Section
Możesz użyć getElementById() do dostępu do elementu <section>:
var x = document.getElementById("mySection");
Utwórz obiekt Section
Możesz użyć metody document.createElement() do utworzenia elementu <section>:
var x = document.createElement("SECTION");
Strony związane
Podręcznik HTML:Tag <section> HTML