html 브라우저, 문서 높이 구하기
2010.08.17 01:10
<script type="text/javascript">
document.writeln("브라우저의 전체 높이",screen.availHeight); //이것은 해상도의 높이에서 하단의 퀵런치 만큼의 사이즈만큼 빠지는거구요
document.writeln("브라우저의 전체 너비",screen.availWidth); //너비는 해상도와 일치할겁니다.
document.writeln("모니터의 해상도 높이 ",screen.height);
document.writeln("모니터의 해상도 너비 ",screen.width);
document.writeln("브라우저안쪽의 높이 ",document.body.clientHeight); //이것이 브라우저 안쪽의 높이구요
document.writeln("브라우저안쪽의 너비 ",document.body.clientWidth); //이것이 브라우저의 안쪽 너비죠..
document.writeln("문서 높이",document.body.scrollHeight); //이것이 문서 높이죠..
</script>
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
» | 브라우저, 문서 높이 구하기 | 2010.08.17 | 3947 |
2 | 파일 불러오기 | 2010.05.17 | 5475 |
1 | javascript 대기시간 - setTimeout | 2010.06.12 | 13144 |