请问如何得知当前光标处在哪个文本框上
如下程序,当光标停留在某个文本框上,我如何才能知道当前光标到底停留在第几个文本框上?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="form1" method="post" action="">
<p>
<input type="text" name="textfield">
<br>
<input type="text" name="textfield">
<br>
<input type="text" name="textfield">
<br>
<input type="text" name="textfield">
</p>
</form>
</body>
</html>