Returning focus after executing a function in IE5

I'll just answer the first question ... Why IE5 are you wondering because it's on a Windows CE device I'm working with, so I'm limited to using IE5. The app I created uses a webpage with multiple elements.

I have 2 textboxes or <input type="text" />

and 1 <textarea></textarea>

, I am transferring data from textbox 2 to textbox. This works great, but I have one small problem. I want the focus to return to textbox 2 when the function has been executed, so I can add more data to the textbox.

Can someone explain or show me a way how I can do this?

https://jsfiddle.net/2quwap6L/2/

I put my code in a fiddle because I think it will be easier.

+3
javascript html


source to share


No one has answered this question yet

Check out similar questions:

6493
var functionName = function () {} vs function functionName () {}
5129
How do I return a response from an asynchronous call?
2812
event.preventDefault () vs. return false
2644
Is there a function "exists" for jQuery?
2256
Set default parameter value for JavaScript function
1511
Why does ++ [[]] [+ []] + [+ []] return the string "10"?
1009
How to measure the time taken by a function to execute
860
How do I execute a JavaScript function when I have its name as a string
five
adding elements to <select> in IE5
0
Javascript function to handle data not working in ie5



All Articles
Loading...
X
Show
Funny
Dev
Pics