You are here: irt.org | FAQ | JavaScript | Image | Q1498 [ previous next ]
Create a visible off screen object, and set the focus to this object from the onFocus event of the object in question.
You can try the following code:
<div id="sneaky" style="position:absolute; left:-200px; top:-200px"> <form id="sneaky1"> <input type="text" name="sneaky2"> </form> </div> <a href="target.html" onFocus="sneaky1.sneaky2.focus()"> </a>
Submitted by rickthrust@sinfinity.nu