InputEvent inputType Properti
Contoh
Kembalikan jenis input acara tentang:
function myFunction(event) {
var x = event.inputType;
}
Definisi dan Penggunaan
Properti inputType
mengembalikan jenis perubahan yang dilakukan oleh acara.
Nilai yang mungkin:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList"
"insertUnorderedList"
"
insertHorizontalRule" "
insertFromYank" "
insertFromDrop " " insertFromPaste" " insertTextComletinsertTranspose" "insert " "deleteWordForward" "deleteSoftLineBackward" "deleteSoftLineForward" "deleteEntireSoftLine" "deleteHardLineBackward" "deleteHardLineForward" "deleteByDrag" "deleteByCut"
"deleteByContent"
"deleteContentBackward"
"deleteContentForward"
"historyUndo"
"historyRedo"
"formatBold"
"formatItalic"
"formatUnderline"
"formatStrikethrough"
"formatSuperscript"
"formatSubscript"
"formatJustifyFull"
"formatJustifyCenter"
"formatJustifyRight"
"formatJustifyLeft" "
formatJustifyLeft "
"
"formatRemove"
"formatSetBlockTextDirection"
"formatSetInlineTextDirection"
"formatBackColor"
"formatFontColor"
"formatFontName"
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
Sintaksis
event.inputType
Detail Teknis
Nilai Kembali: | Sebuah String, menunjukkan tindakan seperti apa yang dilakukan |
---|
Halaman Terkait
Dom Document execCommand() Metode