In Netscape 4.75, onkeypress, onkeyup and onkeydown fail on text boxes within a table. If the text boxes are not in a table, the onkeyxxx works.
This one fails:
<html>
<head>
<title>Test Keypress</title>
</head>
<body>
<form>
<table width="70%" border="1"><tr><td>
<b>CkKeyUp:</b></td><td>
<input type="text" name="temp" size="10" onkeyup="alert('keyup')"></td></tr>
<tr><td>
<b>CkKeyDn:</b></td><td>
<input type="text" name="temp" size="10" onkeydown="alert('keydown')"></td></tr>
<tr><td>
<b>CkKeyPress:</b></td><td>
<input type="text" name="temp" size="10" onkeypress="alert('keypress')"></td></tr>
</table>
</form>
</body>
</html>
but this one works:
<html>
<head>
<title>Test Keypress</title>
</head>
<body>
<form>
<b>CkKeyUp:</b></td><td>
<input type="text" name="temp" size="10" onkeyup="alert('keyup')"><br>
<b>CkKeyDn:</b>
<input type="text" name="temp" size="10" onkeydown="alert('keydown')"><br>
<b>CkKeyPress:</b>
<input type="text" name="temp" size="10" onkeypress="alert('keypress')">
</form>
</body>
</html>
And even weirder, on rare occasions, the failing example will work as well. That is, if you keep reloading the failing example, once in a while (about 1 out of 10 times), it will work.
Can anyone tell me if there is any way to get the onkeyxxx triggers within a table to work reliably in NS 4.75? (I'm using the table merely as a layout device).
Thanks for any help/advice.
This one fails:
<html>
<head>
<title>Test Keypress</title>
</head>
<body>
<form>
<table width="70%" border="1"><tr><td>
<b>CkKeyUp:</b></td><td>
<input type="text" name="temp" size="10" onkeyup="alert('keyup')"></td></tr>
<tr><td>
<b>CkKeyDn:</b></td><td>
<input type="text" name="temp" size="10" onkeydown="alert('keydown')"></td></tr>
<tr><td>
<b>CkKeyPress:</b></td><td>
<input type="text" name="temp" size="10" onkeypress="alert('keypress')"></td></tr>
</table>
</form>
</body>
</html>
but this one works:
<html>
<head>
<title>Test Keypress</title>
</head>
<body>
<form>
<b>CkKeyUp:</b></td><td>
<input type="text" name="temp" size="10" onkeyup="alert('keyup')"><br>
<b>CkKeyDn:</b>
<input type="text" name="temp" size="10" onkeydown="alert('keydown')"><br>
<b>CkKeyPress:</b>
<input type="text" name="temp" size="10" onkeypress="alert('keypress')">
</form>
</body>
</html>
And even weirder, on rare occasions, the failing example will work as well. That is, if you keep reloading the failing example, once in a while (about 1 out of 10 times), it will work.
Can anyone tell me if there is any way to get the onkeyxxx triggers within a table to work reliably in NS 4.75? (I'm using the table merely as a layout device).
Thanks for any help/advice.