做滚动的客户布劳尔窗口 [英] Do the Scrolling in Client Brower Window

查看:86
本文介绍了做滚动的客户布劳尔窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Can i handle the browser scroll bar.

因为我的ASPX页面是large.suppose如果我打在上面的一个按钮,所以我想设置一个集中控制,处于底部附近。

Cause my Aspx Page is to large.suppose if i hit a button on top so i want to set focus a control which is at the near bottom.

Is this Possible to scroll till that control...


修改要求

在gridcontrol一个LinkBut​​ton可以浏览到自己与设置焦点控制[面板]在页面底部。


Modified RequireMent.
Can a linkbutton in gridcontrol navigate to itself with setting the focus to control[Panel] on bottom of the page.

推荐答案

添加一个按钮,然后添加调用javascript函数像这样的onclick处理程序:

add a button, then add an OnClick handler that calls a javascript function like this :

function pageScroll() {
         window.scrollBy(0,50); // horizontal and vertical scroll increments
         var control = document.getElementById("yourControlName");
         if( control != null ){control.focus();
}

这篇关于做滚动的客户布劳尔窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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