Tip: The order of events related to the onmouseup event (for the left/middle mouse button): onmousedown; onmouseup; onclick; The order of events related to the onmouseup event (for the right mouse button): onmousedown; onmouseup; oncontextmenu The target property gets the element on which the event originally occurred, opposed to the currentTarget property, which always refers to the element whose event listener triggered the event. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. The main difference is that the onfocus event does not bubble. The timeStamp event property returns the number of milliseconds from the document was finished loading until the specific event was created. The currentTarget property always refers to the element whose event listener triggered the event, opposed to the target property, which returns the element that triggered the event. numeric-keyboard - Numeric keyboard for mobile browsers. The oninvalid event occurs when a submittable element is invalid. Event bubbling directs an event to its intended target, and works like this: When an object (like a button) is clicked, an event is directed to the object. The nice thing is obviously the Typescript support, but also the option to control the delay time (in ms) that is defaulted to 100ms. The resize() method triggers the resize event, or attaches a function to run when a resize event occurs. vue-prom - Vue promise wrapper component. The bubbles event property returns a Boolean value that indicates whether or not an event is a bubbling event. If the delay time is 0 or less, it will not debounce the handler. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. See also The Document Object. I just wanted to propose yet another method. Syntax frameElement: Returns the frame in which the window runs. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. The onmouseup event occurs when a user releases a mouse button over an element. It represents the browser's window. Note: The onunload event is also triggered when a user reloads the page (and the onload event). Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. Tip: To get the size of an element, use the clientWidth, clientHeight, innerWidth, innerHeight, outerWidth, outerHeight, offsetWidth and/or offsetHeight properties. document: Returns the Document object for the window. The onfocus event occurs when an element gets focus. The innerText property returns: Just the text content of the element and all its children, without CSS hidden text spacing and tags, except