Skip to content
Related Articles

Related Articles

HTML | view Event Property

View Discussion
Improve Article
Save Article
  • Last Updated : 17 Jan, 2019

The view Event Property is used for returning a reference to the Window object. When an event occurs it returns the reference of the Window Object.

Syntax :


Return Value: Returns a reference to the Window object.

Below program illustrates the view Event Property:

<!DOCTYPE html>
    <title>view Event Property in HTML</title>
        h1 {
            color: green;
        h2 {
            font-family: Impact;
        body {
            text-align: center;
    <h2>view Event Property</h2>
    <p>For returning a reference to the Window object,
      double click the "Return Reference" button: </p>
    <button ondblclick="myevent(event)">Return Reference</button>
    <p id="test"></p>
        function myevent() {
            var e = event.view;
            document.getElementById("test").innerHTML = e;


After clicking the button

Supported Web Browsers:

  • Opera
  • Internet Explorer
  • Google Chrome
  • Firefox
  • Apple Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!