Editing
- settings_backup_restore
- bug_report
scroll(Numberx-coords, Numbery-coords | Objectoptions)
scroll()
는(은) Element.prototype.scroll()
와(과) 동일한 작동 방식을 갖는다. 따라서 Element.prototype.scroll()
레퍼런스를 그대로 보여주는 것을 참고(주의)하기 바란다.
현재 창의 특정 위치로 스크롤한다.
매개 변수
scroll()
는(은) Element.prototype.scroll()
와(과) 동일한 작동 방식을 갖는다. 따라서 Element.prototype.scroll()
레퍼런스를 그대로 보여주는 것을 참고(주의)하기 바란다.
- Use of parameters type 1
- Numberx-coords필수
요소를 스크롤하려는 수평 방향 좌표를 픽셀로 지정한다.
- Numbery-coords필수
요소를 스크롤하려는 수직 방향 좌표를 픽셀로 지정한다.
- Use of parameters type 2
- Objectoptions필수
다음 속성을 포함하는 객체를 지정한다.
left
: 수평 스크롤 위치를 나타내는 픽셀 값을 지정한다.top
: 수직 스크롤 위치를 나타내는 픽셀 값을 지정한다.behavior
: 스크롤 방법을 'auto'
, 'smooth'
중에서 선택한다. 'smooth'
를 선택하면 부드럽게 스크롤되고 'auto'
는 즉시 스크롤 된다. 기본 값은 'auto'
이다.
지원 웹브라우저