HTML | view Event Property Last Updated : 17 Jan, 2019 Comments Improve Suggest changes Like Article Like Report 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 : event.view Return Value: Returns a reference to the Window object. Below program illustrates the view Event Property: html <!DOCTYPE html> <html> <head> <title>view Event Property in HTML</title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <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> <br> <p id="test"></p> <script> function myevent() { var e = event.view; document.getElementById("test").innerHTML = e; } </script> </body> </html> Output: After clicking the button Supported Web Browsers: Opera Internet Explorer Google Chrome Firefox Apple Safari Comment More infoAdvertise with us Next Article HTML | view Event Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-Property Similar Reads HTML DOM window event property The window event property returns the event which is currently being handled by the site's code in the current window. Syntax: event = window.event; Note: This property has been DEPRECATED and is no longer recommended. Return Value: This property returns the event object currently being handled. Exa 1 min read HTML DOM type Event Property The type event property in HTML DOM is used to return the type of the triggered event. It returns a string that represents the type of the event. The events can be keyboard events or mouse events. Syntax: event.type Return Value: It returns a string that represents the type of event. Example: In thi 1 min read HTML | DOM target Event Property The target event property in HTML DOM is used to return the element that triggered the event. Syntax: event.target Return Value: This property returns the reference of the object on which the event originally occurred. Below example illustrates the target Event Property in HTML DOM: Example: html 1 min read HTML DOM timeStamp Event Property The timeStamp property in the HTML DOM refers to a read-only property that returns the time (in milliseconds) at which an event was created. The value is measured relative to the UNIX epoch (January 1, 1970, 00:00:00 UTC). This property is commonly used to determine the timing of events and can be u 1 min read HTML | bubbles Event Property The bubbles event property is used for returning a Boolean value which indicates whether an event is a bubbling event or not. The event is triggered if an event handler is set for that object, if not so then the event bubbles up to the object's parent. The event bubble up until it reaches the docume 2 min read SVG Window.event Property The SVG Window.event property returns the event which is currently being handled by the site's code. Syntax: var e = window.event Return value: This property returns the Event which is currently being handled by the site's code. Example 1: In this example we will use onclick event. HTML <!DOCTYPE 1 min read HTML | isTrusted Event Property The isTrusted event property is used for checking whether an event is trusted or not. Return Value: It returns True if an event is trusted else it returns false. Syntax : event.isTrusted Below program illustrates the isTrusted event property : Example: To find out if a specific event is trusted or n 1 min read HTML | cancelable Event Property The cancelable event property is used for returning a Boolean value which indicates whether an event is a cancelable event or not. An event is a cancelable event if it is possible to prevent the event's default action. Return Value: The cancelable event property returns true if the event is cancelab 2 min read HTML DOM window document Property The HTML DOM window document returns a reference to the document contained in the current window. Syntax: doc = window.document; Return Value: This property returns a reference to the document. Example: In this example, we will get the title of the document using that document reference. html <ti 1 min read SVG Event.isTrusted Property The SVG Event.isTrusted property is a boolean that is true when the event was generated by a user action. Syntax: var eventIsTrusted = event.isTrusted Return value: This property returns the boolean value of the event element. Example 1: In this example, we will use onclick event. html <!DOCTYPE 2 min read Like