首页htmltdHTML Element Style - 如何处理表单元上的点击事件

HTML Element Style - 如何处理表单元上的点击事件

我们想知道如何处理表单元上的点击事件。

<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <table border='1'>
    <th>
    <td onclick="window.location='http://www.google.com';"
      style='cursor: pointer;'>Hello</td>
    </th>
  </table>
</body>
</html>