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>

  • 相关阅读:
    20200824
    Redis
    vs2012快捷键教程
    OpenCV 2.4+ C++ SVM介绍
    隐马尔科夫模型
    hu矩
    手势跟踪
    混合高斯模型GMM
    排序算法
    聚类——混合高斯模型 Gaussian Mixture Model
  • 原文地址:https://www.cnblogs.com/zjz/p/277747.html
Copyright © 2011-2022 走看看