EDIT Try this:
On dialog open (remove scrollbar and prevent user from scrolling):
$('body').css({'overflow':'hidden'});
$(document).bind('scroll',function () {
window.scrollTo(0,0);
});
On Dialog Close(allow user to scroll again):
$(document).unbind('scroll');
$('body').css({'overflow':'visible'});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…