InputEvent inputType Proprietà
Esempio
Restituisce il tipo di input a cui si riferiva l'evento:
function myFunction(event) {
var x = event.inputType;
}
Definizione e utilizzo
La inputType
proprietà restituisce il tipo di modifica apportata dall'evento.
Possibili valori:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList"
"insertUnorderedList"
"insertHorizontalRule"
"insertFromYank"
"insertFromDrop"
"insertFromPaste"
"insertTranspose"
"insertCompositionText"
"insertFromComposition"
"insertLink"
"deleteByComposition"
"deleteCompositionText"
"deleteWord "
"cancella WordForward"
"cancellaSoftLineBackward"
"cancellaSoftLineForward"
"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"
Supporto browser
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
Sintassi
event.inputType
Dettagli tecnici
Valore di ritorno: | Una stringa, che indica che tipo di azione è stata eseguita |
---|
Pagine correlate
Metodo Dom Document execCommand()