HTML DOM 진행 객체
진행 개체
Progress 객체는 HTML <progress> 요소를 나타냅니다.
<progress> 요소는 작업의 진행 상황을 나타냅니다.
진행 개체에 액세스
getElementById()를 사용하여 <progress> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myProgress");
진행 개체 만들기
document.createElement() 메서드를 사용하여 <progress> 요소를 만들 수 있습니다.
예시
var x = document.createElement("PROGRESS");
진행 개체 속성
Property | Description |
---|---|
labels | Returns a list of the progress bar's labels (if any) |
max | Sets or returns the value of the max attribute of a progress bar |
position | Returns the current position of the progress bar |
value | Sets or returns the value of the value attribute of a progress bar |
표준 속성 및 이벤트
Progress 객체는 표준 속성 과 이벤트 도 지원합니다 .
관련 페이지
HTML 참조: HTML <progress> 태그