x
 
<!DOCTYPE html>
<html>
<body>
<p>单击按钮可获取事件视图。</p>
<button onclick="myFunction(event)">试一试</button>
<p id="demo"></p>
<script>
function myFunction(event) { 
  var x = event.view;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>