How do I simulate a circular tab control set?
Hello,
Suppose I have the following form:
<form>
Val1:<input type=text tabindex=1 name="val1"><br>
Val1:<input type=text tabindex=2 name="val2"><br>
<input type=submit tabindex=3 name="Submit">
<input type=reset tabindex=4 name="Delete">
</form>
If I use the tabulator once I am on the "Delete" button, I want to be back on field one again (val1).... How do I do it?
With the above code, I start with field 1 but after field 4, I go anywhere in the web page!!!.
An idea could be to setFocus on the val1 field when I exit from <Delete> button.... I have tried:
<input onClick=delete() onExit=focus() tabindex=4 name="Delete">
(where the delete function reset the fields and the focus function focuses on field 1) ..... but it does not work.
Thanks for helping me out
Thanks
Elisabeth
|