App下載
首頁(yè)htmltdHTML Element Style - 如何處理表單元上的點(diǎn)擊事件

HTML Element Style - 如何處理表單元上的點(diǎn)擊事件

我們想知道如何處理表單元上的點(diǎn)擊事件。

<!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>