Set Focus On Form Object

This Javascript will set cursor focus on a text box below.



Here's the code:

Here are the results:




The middle box should be focused. It will be out of focus if you clicked anywhere on the page. Just click your browser's refresh/reload button.



RETURN