hey guys is there a way to always keep the cursor in the form input?
cause i have this membership scanning page so the client scans and it goes to an info page the comes back to the initial scaning page,but the cursor is not in the input box...
cursor position
Started by techker, May 11 2009 12:20 PM
3 replies to this topic
#1
Posted 11 May 2009 - 12:20 PM
|
|
|
#2
Posted 11 May 2009 - 01:48 PM
You'll have to be a lot more specific. What language/platform are you talking about for starters?
#3
Guest_Jordan_*
Posted 12 May 2009 - 12:32 PM
Guest_Jordan_*
Very hard to answer that question without knowing the language you are using.
#4
Posted 13 May 2009 - 07:50 AM
I think he's talking about an HTML form.
This code partially works:
This code partially works:
<html>
<head>
<title>Example of keeping cursor position</title>
</head>
<body>
<h1>Example of keeping cursor position</h1>
<form>
<input id="textBox" type="text" onblur="this.focus()" />
</form>
</body>
</html>
- Works fine in IE 8 (but the cursor moves to the start if you try to click off the box)
- Doesn't work in Firefox at all
- The cursor doesn't stay in the input box, but the box stays selected in Chrome


Sign In
Create Account


Back to top









