scrollHeight, scrollWidth, scrollTop, scrollLeft ¼Ó¼º ¿¹Á¦

°£°ÝÁÖ±â
°á°ú Ç¥½Ãâ
<SCRIPT>
function fnCheckScroll(){
  str='oDiv.scrollHeight='+oDiv.scrollHeight+'<BR>';
  str+='oDiv.scrollWidth='+oDiv.scrollWidth+'<BR>';
  str+='oDiv.scrollTop='+oDiv.scrollTop+'<BR>';
  str+='oDiv.scrollLeft='+oDiv.scrollLeft+'<BR><BR>';
  str+='document.body.scrollHeight='+document.body.scrollHeight+'<BR>';
  str+='document.bodyscrollWidth='+document.body.scrollWidth+'<BR>';
  str+='document.bodyscrollTop='+document.body.scrollTop+'<BR>';
  str+='document.bodyscrollLeft='+document.body.scrollLeft+'<BR>';
  showA.innerHTML=str;
}
</SCRIPT>
<DIV id=oDiv style="overflow:scroll; height=100; width=250; text-align:left;border:solid 1 blue;background-color:pink">
<DIV style=height:150;left:30;background:yellow>°£°ÝÁÖ±â</DIV>
</DIV>
<BUTTON onclick="fnCheckScroll()">½ºÅ©·Ñ Å©±â</BUTTON>
<DIV id=showA style=height:11em>°á°ú Ç¥½Ãâ</DIV>