<!DOCTYPE html>
<html>
<head>
<title>01_define.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript">
console.log('js绑定事件及event参数');
</script>
</head>
<body>
<ul>
<li>aaaaaaa</li>
<li>bbbbbbb</li>
<li>ccccccc</li>
<li>ddddddd</li>
</ul>
This is my HTML page. <br>
<input type="button" value="点击" id="ipt1"/>
<script type="text/javascript">
var ipt1 = window.document.getElementById("ipt1");
ipt1.onclick = function(event){
event = event || window.event;
console.log(event.type);
console.log(this.value);
}
</script>
</body>
</html>