软件中有SendKey的用法,
但是在页面中没有,除非你有shell权限,就可以发送一个按键的指令
这里只能模拟
比如方向,可以用left属性
空格键,可以改变innerHTML,添加 

解决方案 »

  1.   

    <input type=button scroll onclick="window.scrollTo(1000,1000)">
      

  2.   

    scrollTo() 用法:[<窗口对象>.]scrollTo(x, y);使窗口滚动,使文档从左上角数起的(x, y)点滚动到窗口的左上角。
      

  3.   

    晕倒,原来楼主只为这个
    不过提到的东西倒是很有意思的,我试了试,不行,下面是代码
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>Untitled Document</title>
    <script language="javascript">
    function clickleft(){
    left.fireEvent("onKeyPress");
    //alert(window.event.type);
    }
    function KeyPress() {
    window.event.keyCode=99;
    alert(window.event.keyCode);
    }
    </script></head><body><input name="" type="button" value="click" onclick="clickleft()">
    <input name="left" id="left" type="text" onKeyPress="KeyPress()">
    </body>
    </html>