In the browser it is easy to implement a text box like VB form, buttons and other control
Mainly used to keydown,keyup,keypress and other events
Capturing keys using the KeyCode property of the child object of the Window object
The following code is for informational purposes only:
<%@ Language=vbscript%>
<% ' by Chen Kang
' Any Problem please email to
' Chenkang@chenkang.com
' VI 6.0 scripting Object Model Enabled%>
<!--#include file= "_scriptlibrary/pm.asp"-->
<% if startpageprocessing () Then response.end ()%>
<form Name=thisform method=post>
<HTML>
<HEAD>
<meta name=vi60_dtcscriptingplatform content= "Client (IE 4.0 DHTML)" >
<meta Name=vi60_defaultclientscript content=vbscript>
<meta name= "generator" content= "Microsoft Visual Studio 6.0" >
</HEAD>
<BODY>
<script Id=clienteventhandlersvbs language=vbscript>
<!--
Sub Btnok_onclick ()
Dim rtnvalue
Set rtnvalue = LOGON.EXECUTE.CHECKPASSWD (thisform.txtuserid.value,thisform.txtpasswd.value)
Select Case Rtnvalue.return_value
Case 0
' Password correct, go to other program
' Blahlah
Case 1
MsgBox ("Login number error, please re-enter!") ")
' Set highlight
Set highlight = ThisForm.txtUserID.createTextRange
Highlight.select
' Set focus
ThisForm.txtUserID.focus
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.