문서의 총 높이값 알아내는 자바스크립트
jQuery 안 쓴다면 아래 코드가 제일 심플한 듯...
문서의 총 높이값 : 이 페이지의 맨 아래로 갈 때 window.scroll(0,getDocHeight()); 로 활용
출처 : http://james.padolsey.com/javascript/get-document-height-cross-browser/
It’s been tested in IE6/7, FF2/3, Safari (Windows), Google Chrome and Opera 9.5.
문서의 총 높이값 : 이 페이지의 맨 아래로 갈 때 window.scroll(0,getDocHeight()); 로 활용
출처 : http://james.padolsey.com/javascript/get-document-height-cross-browser/
It’s been tested in IE6/7, FF2/3, Safari (Windows), Google Chrome and Opera 9.5.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 2개
좋은 팁 감사합니다~