윈도우의 위쪽이나 아랫쪽에 보이도록 개체를 스크롤(화면굴림)하게 한다.

Scriptobject.scrollIntoView([bAlignToTop])
인수/파라메터
object : (개체)

필수적인 요소이며, 스크롤할 개체이다.

bAlignToTop
선택적인 요소이며, 개체가 어디에 보이도록 스크롤할 것인가를 나타내는 부울값이다.
true 디폴트이며, 윈도우의 맨 위에 개체의 제일 위가 보이도록 개체를 스크롤한다.
false 윈도우의 맨 아래에 개체의 제일 아래가 보이도록 개체를 스크롤한다.
반환값

반환값은 없다.

특기

scrollIntoView 메서드는, 사용자가 수동으로 결과를 찾아 스크롤하지 않고도, 어떤 작용의 결과를 즉시 사용자에게 보이는데 유용하다.

해당 개체와 현재의 윈도우의 크기에따라 이 메서드는 내용을 최상위나 최하위에 위치시키는 것이 가능하지 않을 수 있으나, 개체를 요청한 위치에 가장 가깝게 위치시킬 것이다.

적용
개체scriptIE
aa.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
addressaddress.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
appletapplet.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
areaarea.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
bb.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
bigbig.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
blockQuoteblockQuote.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
brbr.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
buttonbutton.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
captioncaption.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
centercenter.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
citecite.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
codecode.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
colcol.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
colGroupcolGroup.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
commentcomment.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
controlrangecontrolrange.scrollIntoView([bAlignToTop])IE5(win16,win32,unix,mac
customcustom.scrollIntoView([bAlignToTop])IE5(win32,unix)
dddd.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
dfndfn.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
dirdir.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
divdiv.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
dldl.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
dtdt.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
emem.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
embedembed.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
fieldSetfieldSet.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
fontfont.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
formform.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
hnhn.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
hrhr.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
ii.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
iFrameiFrame.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
imgimg.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
buttonbutton.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
checkboxcheckbox.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
FileUploadFileUpload.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
imageimage.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
passwordpassword.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
radioradio.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
resetreset.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
submitsubmit.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
texttext.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
kbdkbd.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
labellabel.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
legendlegend.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
lili.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
listinglisting.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
mapmap.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
marqueemarquee.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
menumenu.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
noBRnoBR.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
ObjectObject.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
olol.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
pp.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
plainTextplainText.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
prepre.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
ss.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
sampsamp.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
selectselect.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
smallsmall.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
spanspan.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
strikestrike.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
strongstrong.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
subsub.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
supsup.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
tabletable.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
tBodytBody.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
tdtd.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
textAreatextArea.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
TextRangeTextRange.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
tFoottFoot.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
thth.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
tHeadtHead.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
trtr.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
tttt.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
uu.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
ulul.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
varvar.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)
wbrwbr.scrollIntoView([bAlignToTop])IE5(win16,win32,unix,mac)
xmpxmp.scrollIntoView([bAlignToTop])IE4.0(win16,win32,ce,unix,mac)

method
scrollIntoView 메서드
scrollIntoView</b> 메서드이전페이지로페이지 맨위로페이지 맨아래로

밑줄친 문단

scrollIntoView 메서드로 문서의 다섯번째 문단을 밑줄긋고, 윈도우에 맨위에 스크롤하여 보이도록 하였다.

<P style="textDecoration:none" id="sampleP">밑줄친 문단</P>
<SCRIPT>
var coll = document.all.tags('P');
  document.write('coll.length='+coll.length+'(예제까지)<BR>');
  coll(coll.length-1).style.textDecoration = 'underline';
  coll(coll.length-1).scrollIntoView(true);

  document.write('coll(coll.length-1).id='+coll(coll.length-1).id+'<BR>');
  document.write('coll(coll.length-1).style.textDecoration='+coll(coll.length-1).style.textDecoration+'<BR>');
</SCRIPT>
method
scrollIntoView 메서드
견본
이전페이지로페이지 맨위로
최종 수정:
04/06/2025 02:10:35
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/method/scrollIntoView.html