Objekt HTML DOM S
S Objekt
Objekt S představuje prvek HTML <s>.
Přístup k objektu S
K prvku <s> můžete přistupovat pomocí getElementById():
Příklad
var x = document.getElementById("myS");
Vytvořte objekt S
Element <s> můžete vytvořit pomocí metody document.createElement():
Příklad
var x = document.createElement("S");
Standardní vlastnosti a události
Objekt S také podporuje standardní vlastnosti a události .
Související stránky
HTML kurz: Formátování textu HTML
HTML reference: HTML tag <s>
JavaScript reference: HTML DOM Del Object