|
Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006
How will the definition of a static variable js If that
There is another problem, how to determine which cursor in the text box, I had a successful
[html]
"Script language=" Javascript ""
KeyDown function ()
{
InputLength = document.keyform.length;
For (i=0;i<inputLength;i++)
{
If (document.keyform.elements[i].focus ())
{alert (I) ;}
}
}
Document.onkeydown=keyDown;
"/script>
"Form name=keyform>
"Input type=" government "name="_ftn1"" test1 "value=111>
"Input type=" government "name="_ftn1"" test2 "value=222>
"Input type=" government "name="_ftn1"" test3 "value=333>
"Input type=" government "name="_ftn1"" test4 "value=444>
"/form>
[/html] |
[html]
"Script language=" Javascript ""
KeyDown function ()
{
Alert ( "Focus" +document.activeElement.name)
}
Document.onkeydown=keyDown;
"/script>
"Form name=keyform>
"Input type=" government "name="_ftn1"" test1 "value=111>
"Input type=" government "name="_ftn1"" test2 "value=222>
"Input type=" government "name="_ftn1"" test3 "value=333>
"Input type=" government "name="_ftn1"" test4 "value=444>
"/form>
[/html] |
|