Home Web Front-end JS Tutorial Translation of frequently used JavaScript events_Basic knowledge

Translation of frequently used JavaScript events_Basic knowledge

May 16, 2016 pm 07:15 PM

onabort Fires when the user interrupts downloading an image.
onactivate Fires when an object is set as an active element.
onafterprint Triggers on the object immediately after the document associated with the object is printed or print previewed.
onafterupdate is triggered on the data binding object when the associated object in the data source object is successfully updated.
onbeforeactivate The object should be triggered immediately before it is set to the current element.
onbeforecopy is triggered on the source object before the selection is copied to the system clipboard.
onbeforecut is triggered on the source object before the selection is deleted from the document.
onbeforedeactivate is triggered immediately before activeElement changes from the current object to another object in the parent document.
onbeforeeditfocus is triggered before the object contained in the editable element enters the user interface activation state or before the editable container becomes the control selection area.
onbeforepaste is triggered on the target object before the selection is pasted from the system clipboard to the document.
onbeforeprint is triggered on the object before its associated document is printed or print previewed.
onbeforeunload is triggered before the page is about to be unloaded.
onbeforeupdate is triggered on the data binding object before the associated object in the data source object is successfully updated.
onblur is triggered when the object loses input focus.
onbounce is triggered when the behavior property of the marquee object is set to "alternate" and the content of the subtitle reaches the side of the window.
oncellchange is triggered when the data in the data provider changes.
onchange Triggered when the object or the content of the selected area changes.
onclick is triggered when the user clicks the object with the left mouse button.
oncontextmenu is triggered when the user right-clicks the client area to open the context menu.
oncontrolselect Fires when the user is about to create a control selection area for the object.
oncopy Fires on the source element when the user copies an object or selection and adds it to the system clipboard.
oncut Fires on the source element when the object or selection is removed from the document and added to the system clipboard.
ondataavailable is triggered whenever the data of the data source object that asynchronously transmits data arrives.
ondatasetchanged Triggered when the data set corresponding to the data source object changes.
Ondatasetcomplete triggering indicates that all data of the data source object is available.
ondblclick Fires when the user double-clicks the object.
ondeactivate is triggered when activeElement changes from the current object to another object in the parent document.
ondrag is continuously triggered on the source object when a drag operation is performed.
ondragend Fires on the source object when the user releases the mouse after the drag operation.
ondragenter is triggered on the target element when the user drags an object to a legal drag target.
ondragleave is triggered on the target object when the user moves the mouse out of the legal drag target during the drag operation.
ondragover continues to be triggered on the target element when the user drags the object across the legal drag target.
ondragstart is triggered on the source object when the user starts dragging the text selection area or selected object.
ondrop Fires on the target object when the mouse button is released during a drag operation.
onerror Triggered when an error occurs during object loading.
onerrorupdate is triggered on the data binding object when an error occurs when updating the associated data in the data source object.
onfilterchange Fires when a visual filter changes state or completes a transition.
onfinish is triggered when the subtitle loop is completed.
onfocus Fires when the object gains focus.
onfocusin Fires before the element is about to be set as focus.
onfocusout is triggered on the element that currently has focus immediately after moving focus to other elements.
onhelp Triggered when the user presses the F1 key when the browser is the current window.
onkeydown Fires when the user presses a keyboard key.
onkeypress Fires when the user presses a literal key.
onkeyup Fires when the user releases a keyboard key.
onlayoutcomplete Fires when the print or print preview layout process has completed filling the current LayoutRect object with the content from the source document.
onload is triggered immediately after the browser completes loading the object.
onlosecapture Fires when the object loses mouse capture.
onmousedown Fires when the user clicks an object with any mouse button.
onmouseenter Fires when the user moves the mouse pointer into the object.
onmouseleave Triggered when the user moves the mouse pointer outside the bounds of the object.
onmousemove is triggered when the user moves the mouse over the object.
onmouseout Fires when the user moves the mouse pointer out of the object boundary.
onmouseover Triggered when the user moves the mouse pointer into the object.
onmouseup Fires when the user releases the mouse button while the mouse is over the object.
onmousewheel Fires when the mouse wheel button is rotated.
onmove is triggered when the object moves.
onmoveend is triggered when the object stops moving.
onmovestart Fires when the object starts moving.
onpaste Fires on the target object when the user pastes data to transfer data from the system clipboard to the document.
onpropertychange is triggered when a property change occurs on the object.
onreadystatechange is triggered when the object state changes.
onreset Fires when the user resets the form.
onresize Triggered when the size of the object is about to change.
onresizeend is triggered when the user changes the size of the object in the selected area of ​​the control.
onresizestart Fires when the user starts to change the size of the object in the selection area of ​​the control.
onrowenter is triggered to indicate that the current row has been changed in the data source and new data values ​​are available on the object.
onrowexit is triggered when the data source control changes the current row of the object.
onrowsdelete Fires when a row is about to be deleted from the recordset.
onrowsinserted Triggered when a new row is inserted into the current recordset.
onscroll Fires when the user scrolls the scroll bar of the object.
onselect is triggered when the current selection changes.
onselectionchange Fires when the selected state of the document changes.
onselectstart Triggers when the object is about to be selected.
onstart is triggered at the beginning of each loop of the marquee object.
onstop is triggered when the user clicks the stop button or leaves the web page.
onsubmit is triggered when the form is about to be submitted.
onunload is triggered immediately before the object is unloaded.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if I encounter garbled code printing for front-end thermal paper receipts? What should I do if I encounter garbled code printing for front-end thermal paper receipts? Apr 04, 2025 pm 02:42 PM

Frequently Asked Questions and Solutions for Front-end Thermal Paper Ticket Printing In Front-end Development, Ticket Printing is a common requirement. However, many developers are implementing...

Demystifying JavaScript: What It Does and Why It Matters Demystifying JavaScript: What It Does and Why It Matters Apr 09, 2025 am 12:07 AM

JavaScript is the cornerstone of modern web development, and its main functions include event-driven programming, dynamic content generation and asynchronous programming. 1) Event-driven programming allows web pages to change dynamically according to user operations. 2) Dynamic content generation allows page content to be adjusted according to conditions. 3) Asynchronous programming ensures that the user interface is not blocked. JavaScript is widely used in web interaction, single-page application and server-side development, greatly improving the flexibility of user experience and cross-platform development.

Who gets paid more Python or JavaScript? Who gets paid more Python or JavaScript? Apr 04, 2025 am 12:09 AM

There is no absolute salary for Python and JavaScript developers, depending on skills and industry needs. 1. Python may be paid more in data science and machine learning. 2. JavaScript has great demand in front-end and full-stack development, and its salary is also considerable. 3. Influencing factors include experience, geographical location, company size and specific skills.

How to achieve parallax scrolling and element animation effects, like Shiseido's official website?
or:
How can we achieve the animation effect accompanied by page scrolling like Shiseido's official website? How to achieve parallax scrolling and element animation effects, like Shiseido's official website? or: How can we achieve the animation effect accompanied by page scrolling like Shiseido's official website? Apr 04, 2025 pm 05:36 PM

Discussion on the realization of parallax scrolling and element animation effects in this article will explore how to achieve similar to Shiseido official website (https://www.shiseido.co.jp/sb/wonderland/)...

The Evolution of JavaScript: Current Trends and Future Prospects The Evolution of JavaScript: Current Trends and Future Prospects Apr 10, 2025 am 09:33 AM

The latest trends in JavaScript include the rise of TypeScript, the popularity of modern frameworks and libraries, and the application of WebAssembly. Future prospects cover more powerful type systems, the development of server-side JavaScript, the expansion of artificial intelligence and machine learning, and the potential of IoT and edge computing.

Is JavaScript hard to learn? Is JavaScript hard to learn? Apr 03, 2025 am 12:20 AM

Learning JavaScript is not difficult, but it is challenging. 1) Understand basic concepts such as variables, data types, functions, etc. 2) Master asynchronous programming and implement it through event loops. 3) Use DOM operations and Promise to handle asynchronous requests. 4) Avoid common mistakes and use debugging techniques. 5) Optimize performance and follow best practices.

How to merge array elements with the same ID into one object using JavaScript? How to merge array elements with the same ID into one object using JavaScript? Apr 04, 2025 pm 05:09 PM

How to merge array elements with the same ID into one object in JavaScript? When processing data, we often encounter the need to have the same ID...

How to implement panel drag and drop adjustment function similar to VSCode in front-end development? How to implement panel drag and drop adjustment function similar to VSCode in front-end development? Apr 04, 2025 pm 02:06 PM

Explore the implementation of panel drag and drop adjustment function similar to VSCode in the front-end. In front-end development, how to implement VSCode similar to VSCode...

See all articles