Propriété InputEvent inputTypeInputEvent inputType Property
Exemple
Renvoie le type d'entrée sur lequel portait l'événement :
function myFunction(event) {
var x = event.inputType;
}
Définition et utilisation
La inputType
propriété renvoie le type de modification effectuée par l'événement.
Valeurs possibles:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList"
"insertUnorderedList"
"insertHorizontalRule"
"insertFromYank"
"insertFromDrop"
"insertFromPaste"
"insertTranspose"
"insertCompositionText"
"insertFromComposition"
"insertLink"
"deleteByComposition"
"deleteCompositionText"
"deleteWordBackward "
"deleteWordForward"
"deleteSoftLineBackward"
"deleteSoftLineForward"
"deleteEntireSoftLine"
"deleteHardLineBackward"
"deleteHardLineForward"
"deleteByDrag"
"deleteByCut"
"deleteByContent"
"deleteContentBackward"
"deleteContentForward"
"historyUndo"
"historyRedo"
"formatBold"
"formatItalic"
"formatUnderline"
"formatStrikethrough" "formatSuperscript"
"formatSubscript"
"formatJustifyFull" "formatJustifyCenter"
"formatJustifyRight"
"formatJustifyLeft" "
formatIndent" "
formatOutdent " " "formatRemove" "formatSetBlockTextDirection" "formatSetInlineTextDirection" "formatBackColor" "formatFontColor" "formatFontName"
Prise en charge du navigateur
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
Syntaxe
event.inputType
Détails techniques
Valeur de retour : | Une chaîne, indiquant le type d'action qui a été effectuée |
---|
Pages connexes
Dom Document execCommand() Méthode