<html>
<body>
<p>Click the button to get the event view.</p>
<button onclick="myFunction(event)">Try it</button>
<p id="demo"></p>
<script>
function myFunction(event) {
var x = event.view;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_event_view by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:02 GMT -->
</html>