Forum Moderators: open
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TAB test</title>
</head>
<body onload="document.my_form.first.select();">
<form name="my_form" method="post" action="">
<table>
<tr>
<td align="right">First field:</td>
<td><input type="text" name="first"/></td>
</tr>
<tr>
<td align="right">Second field:</td>
<td><input type="text" name="second"/></td>
</tr>
</table>
</form>
</body>
</html>
When you hit TAB from inside the first input field you will sometimes go to the second input field and sometimes you will end up in the address field of the browser! What is going on? :( And how can I fix it? Heeelp!
Thanks a lot in advance,
Stine :)
<body onload="document.my_form.first.focus();">
Using the select() method seems to work OK (in terms of tabing to the next input element in IE), *only* if there is something in the first element to begin with and therefore something to select! (Another anomaly of IE I recon!)