Đối tượng tiến trình HTML DOM
Đối tượng tiến bộ
Đối tượng Progress đại diện cho phần tử HTML <progress>.
Phần tử <progress> thể hiện tiến độ của một nhiệm vụ.
Truy cập một đối tượng tiến trình
Bạn có thể truy cập phần tử <progress> bằng cách sử dụng getElementById():
Tạo một đối tượng tiến độ
Bạn có thể tạo phần tử <progress> bằng cách sử dụng phương thức document.createElement():
Thuộc tính đối tượng tiến trình
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 |
Thuộc tính và sự kiện tiêu chuẩn
Đối tượng Progress cũng hỗ trợ các thuộc tính và sự kiện tiêu chuẩn.
Trang liên quan
Tham chiếu HTML: Thẻ HTML <progress>