InputEventinputTypeプロパティ_
例
イベントに関する入力のタイプを返します。
function myFunction(event) {
var x = event.inputType;
}
定義と使用法
inputType
プロパティは、イベントによって行われた変更のタイプを返します。
可能な値:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList" "
insertUnorderedList" "
insertHorizontalRule" "
insertFromYank" "
insertFromDrop"
"insertFromPaste" "insertTranspose
" "insertCompositionText
"
"insertFromComposition"
"insertLink"
"deleteByComposition"
"deleteCompositionText"
"delete "
" deleteWordForward "
" deleteSoftLineBackward "
" deleteSoftLineForward "
"deleteEntireSoftLine "
" deleteHardLineBackward "
" deleteHardLineForward "
" deleteByDrag "
" deleteByCut "
"deleteByContent"
"deleteContentBackward"
"deleteContentForward"
"historyUndo"
"historyRedo"
"formatBold"
"formatItalic"
"formatUnderline"
"formatStrikethrough"
"formatSuperscript"
"formatSubscript"
"formatJustifyFull"
"formatJustifyCenter"
"formatJustifyRight"
"formatJustifyLeft" "
formatIndent"
"
" formatRemove "
" formatSetBlockTextDirection "
" formatSetInlineTextDirection "
" formatBackColor "
"formatFontColor"
"formatFontName"
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
構文
event.inputType
技術的な詳細
戻り値: | 実行されたアクションの種類を示す文字列 |
---|
関連ページ
Dom Document execCommand()メソッド