HTML | isTrusted Event Property Last Updated : 22 Jan, 2019 Comments Improve Suggest changes Like Article Like Report 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 not. html <!DOCTYPE html> <html> <head> <title>isTrusted Event Property in HTML</title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body onclick="MyEvent(event)"> <h1>GeeksforGeeks</h1> <h2>isTrusted Event Property</h2> <p>Double Click the "Check Event" button to check whether the event is trusted or not.</p> <button ondblclick="MyEvent(event)"> Try it </button> <script> // Check whether the event is trusted or not. function MyEvent(event) { if ("isTrusted" in event) { if (event.isTrusted) { alert("The " + event.type + " is a trusted event."); } else { alert("The " + event.type + " is not a trusted event."); } } else { alert("Your browser does not support " +"the isTrusted property"); } } </script> </body> </html> Output: Before clicking the button: After clicking the button: Supported Browsers: Opera Internet Explorer Google Chrome Firefox Comment More infoAdvertise with us Next Article HTML | isTrusted Event Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-Property Similar Reads 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 HTML | view Event Property 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 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 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 InputEvent data Property The InputEvent data property is used to return the character that was inserted using the event. The InputEvent data property is a read-only property and it returns a string representing the character that was inserted. Syntax:event.dataReturn Value: It returns the input data from a text field. Below 1 min read Like