案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
4
<script type="text/javascript">
5
function getEventType(event)
6
  { 
7
  alert(event.bubbles);
8
  }
9
</script>
10
</head>
11
12
<body onmousedown="getEventType(event)">
13
14
<p>Click somewhere in the document. An alert box will tell if the event is a bubbling event.</p>
15
16
</body>
17
</html>
18