gecko-dev/layout/html/tests/table/marvin/tables_onkeydown.html

33 строки
1.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- test case: tables_onkeydown.html -->
<!-- description: HTML 4.0 TABLE element/ONKEYDOWN attribute -->
<!-- Author: Christine Dreckman Date: 1/13/99 -->
<!-- CONFIDENTIAL AND PROPRIETARY TEST SCRIPT OF NETSCAPE COMMUNICATIONS CORPORATION
Copyright © 1999 Netscape Communications Corporation. All Rights Reserved. Use of this Test Script is
subject to the terms of the applicable license agreement from Netscape Communications Corporation -->
<!-- Purpose: To test the ONKEYDOWN attribute of the TABLE element tag-->
<!-- Expected result: With focus on the table, pressing a key down should cause a Javascript alert dialog box to display -->
<title>tables_onkeydown</title>
<script language="Javascript">
</script>
</head>
<body>
<p>This tests the ONKEYDOWN attribute of the TABLE element tag. With focus on the table, pressing a key down should cause a Javascript alert dialog box to display with the following message: 'Key was pressed down!'.</p>
<table border onKeyDown="window.alert ('Key was pressed down!')">
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
</table>
</body>
</html>