InputEventBaseline Widely available *This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.* Some parts of this feature may have varying levels of support.Learn moreSee full compatibilityReport feedbackThe InputEvent interface represents an event notifying the user of editable content changes. Event UIEvent InputEvent Constructor InputEvent() Creates an InputEvent object. Instance propertiesThis interface inherits properties from its parents, UIEvent and Event. InputEvent.data Read only Returns a string with the inserted characters. This may be an empty string if the change doesn't insert text (for example, when deleting characters). InputEvent.dataTransfer Read only Returns a DataTransfer object containing information about richtext or plaintext data being added to or removed from editable content. InputEvent.inputType Read only Returns the type of change for editable content such as, for example, inserting, deleting, or formatting text. InputEvent.isComposing Read only Returns a Boolean value indicating if the event is fired after compositionstart and before compositionend. Instance methodsThis interface inherits methods from its parents, UIEvent and Event. InputEvent.getTargetRanges() Returns an array of StaticRange objects that will be affected by a change to the DOM if the input event is not canceled. SpecificationsSpecificationInput Events Level 2 # interface-InputEventUI Events # interface-inputeventBrowser compatibilitydesktopmobileChromeEdgeFirefoxOperaSafariChrome AndroidFirefox for AndroidOpera AndroidSafari on iOSSamsung InternetWebView AndroidWebView on iOSInputEventChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox31Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari10.1Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android31Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS10.3Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS10.3Toggle historyInputEvent() constructorChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox31Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari10.1Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android31Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS10.3Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS10.3Toggle historydataChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox67Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari10.1Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android67Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS10.3Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS10.3Toggle historydataTransferChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox67Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari10.1Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android67Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS10.3Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS10.3Toggle historygetTargetRangesChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox87Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari10.1Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android87Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS10.3Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS10.3Toggle historyinputTypeChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox66Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari10.1Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android66Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS10.3Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS10.3Toggle historyinsertFromPasteAsQuotation input typeExperimentalChrome – No supportChromeNoToggle historyEdge – No supportEdgeNoToggle historyFirefox – Full supportFirefox67Toggle historyOpera – No supportOperaNoToggle historySafari – No supportSafariNoToggle historyChrome Android – No supportChrome AndroidNoToggle historyFirefox for Android – Full supportFirefox for Android67Toggle historyOpera Android – No supportOpera AndroidNoToggle historySafari on iOS – No supportSafari on iOSNoToggle historySamsung Internet – No supportSamsung InternetNoToggle historyWebView Android – No supportWebView AndroidNoToggle historyWebView on iOS – No supportWebView on iOSNoToggle historyisComposingChrome – Full supportChrome60Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox31Toggle historyOpera – Full supportOpera47Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android60Toggle historyFirefox for Android – Full supportFirefox for Android31Toggle historyOpera Android – Full supportOpera Android44Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet8.0Toggle historyWebView Android – Full supportWebView Android60Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historySee also beforeinput event input event