如何分辨何时滚动条位于asp.net多行文本框的底部 [英] how to tell when scroll bar is at bottom of an asp.net multiline text box

查看:108
本文介绍了如何分辨何时滚动条位于asp.net多行文本框的底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net页面上工作,并且我有一个显示一些文本的多行文本框.我希望用户在显示复选框以继续之前,必须一直滚动到底部.我的问题是如何判断滚动条是否在底部?

I am working on an asp.net page and I have a multiline text box that displays some text. I want the user to have to scroll all the way to the bottom before I display a checkbox for them to continue. My question is how can you tell if the scroll bar is at the bottom?

推荐答案

使用javascript:

By using javascript:

在Internet Explorer中:document.body.scrollLeftdocument.body.scrollTop

in Internet Explorer: document.body.scrollLeft document.body.scrollTop

在Netscape中:window.pageXOffsetwindow.pageYOffset

in Netscape: window.pageXOffset window.pageYOffset

这篇关于如何分辨何时滚动条位于asp.net多行文本框的底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆