Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

InputEvent

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

The InputEvent interface represents an event notifying of editable content change.

Constructor

InputEvent()
Creates an InputEvent object.

Properties

This interface inherits properties from its parents, UIEvent and Event.

InputEvent.data Read only
Returns a DOMString with the inserted characters. This may be empty string if the change doesn't cause inserting text, e.g., deleting characters.
InputEvent.isComposingRead only
Returns a Boolean value indicating if the event is fired after compositionstart and before compositionend.

Methods

This interface doesn't implement specific methods, but inherits methods from its parents, UIEvent and Event.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'InputEvent' in that specification.
Working Draft Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support 31.0 (31.0) No support No support No support
data No support No support No support No support No support
isComposing() No support 31.0 (31.0) No support No support No support
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support No support 31.0 (31.0) No support No support No support
data No support No support No support No support No support
isComposing() No support 31.0 (31.0) No support No support No support

See also

文件標籤與貢獻者

標籤: 
 此頁面的貢獻者: ziyunfei, fscholz, teoli, Masayuki
 最近更新: ziyunfei,