![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How would I get and set the position of a cursor in a text edit field? script language='javascript' function csrPos(editName){ var cp=document.getElementById(editName).??? <--- what goes here? alert(cp); } /script edit onkeyup="csrPos('txtIn');" id=txtIn type=text size=50 TIA I Think you ment to give focus on the element type so it can be selected on |
#3
| |||
| |||
|
|
How would I get and set the position of a cursor in a text edit field? script language='javascript' function csrPos(editName){ var cp=document.getElementById(editName).??? <--- what goes here? alert(cp); } /script edit onkeyup="csrPos('txtIn');" id=txtIn type=text size=50 TIA I Think you ment to give focus on the element type so it can be selected on |
#4
| |||
| |||
|
|
"Arg" <r_arg (AT) hotmail (DOT) com> escreveu na mensagem news:js7Le.2995$F_7.2552 (AT) fe06 (DOT) lga... How would I get and set the position of a cursor in a text edit field? script language='javascript' function csrPos(editName){ var cp=document.getElementById(editName).??? <--- what goes here? alert(cp); } /script edit onkeyup="csrPos('txtIn');" id=txtIn type=text size=50 TIA I Think you ment to give focus on the element type so it can be selected on top of others , so if the browser supports it it stays like: document.getElementById('editname').focus(); Hope it helps........ |
#5
| |||
| |||
|
|
How would I get and set the position of a cursor in a text edit field? |
![]() |
| Thread Tools | |
| Display Modes | |
| |