That's just an Idea but you can try something like this (I didn't try it so there may still errors):
<HTML>
<SCRIPT language = "javascript">
var timeIsOut = false;
function reloadPage(){
var newLocation =...
Ok,
I'm sorry for this stupid introduction. That was just an example. So just imagine a function that gives the cursor position IF THE FIELD HAS THE FOCUS (forget the button) and a negative value else (for example -1). Hope this is clearer
Hello,
I'm searching a solution to get the position of the cursor in a text field. Can anyone help me?
So if We have a bit of code like this:
<HTML>
<SCRIPT language = "javascript">
function getCursorPos(elem){
...
}
</SCRIPT>...
Hello,
I need a way to select the text of a textfield but not the whole text. I know the method elem.select() but I need something like elem.select(start, length) where start would be the id of the first character to be selected and length, the length of the selection. I have searched in google...
Hello, I'm actually encountering exactly the same problem as you. I'm writing you this message because I'm about to found the solution (I have found it but I want to improve it). If you are interested I think I will be able to give you the code in one or two weeks at most (I'm sorry but I have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.