zoukankan      html  css  js  c++  java
  • 回车改变焦点

    <script language="vbscript">
    <!--
    Sub TextBox1_onkeydown                             //TextBox1,TextBox2,DropDownList1为web控件;
     if window.event.keyCode=13 then
      EnterTextBox_1.TextBox2.focus()     //EnterTextBox_1为 <form id=" EnterTextBox_1" runat="server">
     end if
    End Sub
    Sub TextBox2_onkeydown
     if window.event.keyCode=13 then
      EnterTextBox_1.DropDownList1.focus()
     end if
    End Sub
    Sub DropDownList1_onkeydown
     if window.event.keyCode=13 then
      EnterTextBox_1.TextBox1.focus()
     end if
    End Sub
    //-->
      </script>

    另外一种:

    <script language="vbscript">
    <!--
    Sub document_onkeydown
     if window.event.keyCode=13 then
      window.event.keyCode=9
     end if
    End Sub
    //-->
      </script>

  • 相关阅读:
    第九周作业
    第八周
    第七周
    Jmeter连接到Mysql
    数据库常用链接URL写法
    功能测试方法
    常建输入框的测试
    系统业务流程测试(转)
    Linux
    搭建Git服务器
  • 原文地址:https://www.cnblogs.com/zjz/p/277747.html
Copyright © 2011-2022 走看看