Please support our HTML and CSS advertiser: Lunarpages Web Hosting
•
•
Join Date: Dec 2004
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
I have a form with several text boxes.
The onblur handler for each calls a function, and so does the onfocus handler. Both the functions alter the display.
When I am in one text box and click into another, it appears (from using alert boxes to track the results) that browsers PROCESS the onblur first, then the onfocus, but then DISPLAY the onfocus changes and finally display the changes dictated by the onblur.
The onfocus may find text already in the box, and when it does it places the cursor at the end of the text.
But then the browser does the onblur screen-changes and when it returns focus to the new text box the cursor is in the leftmost position.
Does anyone know how I can position the cursor in that text box so it appears in the position following the last byte of whatever text is already entered (thus enabling the user to continue typing)?
The onblur handler for each calls a function, and so does the onfocus handler. Both the functions alter the display.
When I am in one text box and click into another, it appears (from using alert boxes to track the results) that browsers PROCESS the onblur first, then the onfocus, but then DISPLAY the onfocus changes and finally display the changes dictated by the onblur.
The onfocus may find text already in the box, and when it does it places the cursor at the end of the text.
But then the browser does the onblur screen-changes and when it returns focus to the new text box the cursor is in the leftmost position.
Does anyone know how I can position the cursor in that text box so it appears in the position following the last byte of whatever text is already entered (thus enabling the user to continue typing)?
Similar Threads
Other Threads in the HTML and CSS Forum
- Clearing Text Boxes (VB.NET)
- Adding the results of two text boxes (Visual Basic Express Edition) (VB.NET)
- The Datagrid: How does one fill text boxes in edit mode with their original content? (ASP.NET)
- link text boxes with listbox (VB.NET)
Other Threads in the HTML and CSS Forum
- Previous Thread: Trying to adjust image width to match browser size
- Next Thread: Trigger onChange manually
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Threaded Mode