Mozilla/mozilla/layout/html/tests/table/marvin/tables_onclick.html
karnaze%netscape.com 40c7757fb4 table regression tests
git-svn-id: svn://10.0.0.236/trunk@26311 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 19:56:05 +00:00

33 lines
1.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- test case: tables_onclick.html -->
<!-- description: HTML 4.0 TABLE element/ONCLICK 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 ONCLICK attribute of the TABLE element tag-->
<!-- Expected result: Clicking on the table should cause a Javascript alert dialog box to display -->
<title>tables_onclick</title>
<script language="Javascript">
</script>
</head>
<body>
<p>This tests the ONCLICK attribute of the TABLE element tag. Click on the table and a Javascript alert dialog box will display with the following message: 'Clicked!'.</p>
<table border onClick="window.alert ('Clicked!')">
<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>