DOM

settings_applicationsEventTarget  >   settings_applicationsNode  >   settings_applicationsElement

DOM

  • bug_report

Eventbeforeinput

insert_drive_fileInputEventinterfaceopen_in_new
InputEvent interface는 Element에서 beforeinput 이벤트 타입으로 구현된다.

Element의 beforeinput는 InputEvent interface의 이벤트 타입이고 이벤트 리스너에서 사용된다.

기본 개요

<input>,<select>, <textarea> 요소의 값이 변경되려고 할 때 발생한다.

설명

input 이벤트와 같아 보일 수 있지만 이벤트 이름에서 알 수 있듯이 input 이벤트가 발생하기 전에 발생한다.

구문

형식
element.addEventListener("beforeinput", function() { });

명세

typebeforeinput
bubblesyes
cancelableyes
targetHTMLElement
handleronbeforeinput

지원 웹브라우저