입력 범위 stepDown() 메서드
예시
슬라이더 컨트롤의 값을 "10"만큼 감소:
document.getElementById("myRange").stepDown(10);
정의 및 사용
stepDown() 메서드는 슬라이더 컨트롤의 값을 지정된 숫자만큼 감소시킵니다.
팁: 값을 증가시키려면 stepUp() 메소드를 사용하십시오.
브라우저 지원
Method | |||||
---|---|---|---|---|---|
stepDown() | Yes | 12.0 | Yes | Yes | Yes |
통사론
rangeObject.stepDown(number)
매개변수 값
Parameter | Description |
---|---|
number | Required. Specifies the amount the value of the slider control should decrease. If omitted, the value is decremented by "1" |
기술적 세부 사항
반환 값: | 반환 값 없음 |
---|
더 많은 예
예시
슬라이더 컨트롤의 값을 "1"(기본값)만큼 감소:
document.getElementById("myRange").stepDown();
❮ 입력 범위 개체