The DOM UiEvent in HTML is an event that is triggered by the user interface belonging to the UiEvent Object.
The two main purposes of the UI Event are:
- Allows registration of event listeners and describes event flow through a tree structure.
- Provide a common subset of the current event systems used in existing browsers.
Event_name = function
Return Value : This will return the object with the specified Event attached.
The event types belongs to the UiEvent Object are:
|abort||This event occurs when the loading of a media is aborted.|
|beforeunload||This event occurs before the document is about to be unloaded|
|error||This event occurs when an error occurred during the loading of a media file.|
|load||This event occurs when an object has loaded.|
|resize||This event occurs when the document view is resized.|
|scroll||This event occurs when an element’s scrollbar is being scrolled.|
|select||This The event occurs after the user selects some text for(“input” and “textarea”).|
|unload||This event occurs once a page has unloaded (for “body”).|
Example-1: This example is based on “onresize” event.
When width of the window increased to 110% value of the width and height will be:
Example-2: This example is based on “load” event.
When the page loaded:
- Google Chrome
- Mozilla Firefox
- HTML | DOM UiEvent detail Property
- HTML | DOM HTML Object
- Replace a DOM element with another DOM element in place
- HTML | DOM lang Property
- HTML | DOM Style backgroundClip Property
- HTML | DOM Style borderTop Property
- HTML | DOM Meter max Property
- HTML | DOM fullscreenerror Event
- HTML | DOM onvolumechange Event
- HTML | DOM Input Hidden value Property
- HTML | DOM onopen Event
- HTML | DOM ProgressEvent
- HTML | DOM Textarea autofocus Property
- HTML | DOM Style columnGap Property
- HTML | DOM Input Time autofocus Property
- HTML | DOM Input Submit formTarget Property
- HTML | DOM Style boxSizing Property
- HTML | DOM Video seekable Property
- HTML | DOM Input Checkbox disabled Property
- HTML | DOM Source src Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.