HTML DOM S 대상
S 객체
S 객체는 HTML <s> 요소를 대표합니다。
S 객체 접근
getElementById()를 사용하여 <s> 요소에 접근할 수 있습니다:
var x = document.getElementById("myS");
S 객체 생성
document.createElement() 메서드를 사용하여 <s> 요소를 생성할 수 있습니다:
var x = document.createElement("S");
S 객체는 HTML <s> 요소를 대표합니다。
getElementById()를 사용하여 <s> 요소에 접근할 수 있습니다:
var x = document.getElementById("myS");
document.createElement() 메서드를 사용하여 <s> 요소를 생성할 수 있습니다:
var x = document.createElement("S");