<script type=
"text/javascript"
>
$(document).ready(
function
(){
alert($(window).height());
alert($(document).height());
alert($(document.body).height());
alert($(document.body).outerHeight(
true
));
alert($(window).width());
alert($(document).width());
alert($(document.body).width());
alert($(document.body).outerWidth(
true
));
var
win_height=$(window).height();
var
doc_height=$(document).height();
var
scroll_top=$(document).scrollTop();
$(window).bind(
'scroll'
,
function
(){
if
($(document).scrollTop() + $(window).height() >= $(document).height()){
console.log(win_height);
console.log($(document).scrollTop());
console.log(doc_height);
}
});
});
</script>