イベントの追加/削除

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<script type="text/javascript"><!--
function check()
{
alert("クリックされました");
}
// --></script>
</head>
<body>
<h1>イベント処理</h1>
<form>
<input type="button" value="クリック" onClick="check()"><br>
</form>
</body>
</html>
・サンプル1を実行する
・サンプル2を実行する
・サンプル3を実行する
・サンプル4を実行する
・サンプル5を実行する
・サンプル6を実行する
Ajax逆引きクイックリファレンス 説明などは本書を参考にしてください。