JavaScript Event

진성대·2023년 3월 23일
0

Front-End

목록 보기
3/15
post-thumbnail
post-custom-banner

Event

Onclick

  • when element is clicked.

Ondblclick

  • when element is double-clicked.

Onfocus

  • when an element gets focus such as button, input, textarea etc.

Onblur

  • when form loses the focus from an element.

Onsubmit

  • when form is submitted.

Onkeydown

  • when key is being pressed.

Onkeypress

  • when user presses the key.

Onkeyup

  • when key is released.

Onload

  • when document, object or frameset is loaded.

Onunload

  • when body or frameset is unloaded.

Onscroll

  • when document is scrolled.

Onresize

  • when document is resized.

Onreset

  • when form is reset.

Onmouseover

  • when mouse is moved over an element.

Onmouseout

  • when mouse is moved out from an element (after moved over).

Onmousedown

  • when mouse button is pressed over an element.

Onmouseup

  • when mouse is released from an element (after mouse is pressed).
profile
신입 개발자
post-custom-banner

0개의 댓글