Edit This Code:
See Result »
<textarea rows="4" cols="50">Click me (or use the tab key) to assure that I get focus. Then, click the input field to make sure that it gets focus.</textarea>
Input field:
Note:
The relatedTarget property of the FocusEvent object is not supported in IE8 and earlier.
Result: