Thuộc tính inputEvent inputType
Thí dụ
Trả về loại đầu vào mà sự kiện nói về:
function myFunction(event) {
var x = event.inputType;
}
Định nghĩa và Cách sử dụng
Thuộc inputType
tính trả về loại thay đổi đã được thực hiện bởi sự kiện.
Những giá trị khả thi:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList"
"insertUnorderedList"
"insertHorizontalRule"
"insertFromYank"
"insertFromDrop"
"insertFromPaste"
"insertTranspose"
"insertOrderedList"
"insertUnorderedList" "insertHorizontalRule" "insertFromYank" "insertFromDrop" "insertFromPaste" "insertTranspose" "insertCompositionText" "deleteByxt
"
insertComposition
"
xóa "
" deleteWordForward "
" deleteSoftLineBackward "
" deleteSoftLineForward "
"deleteEntireSoftLine "
" deleteHardLineBackward "
" deleteHardLineForward "
" deleteByDrag "
" deleteByCut "
"deleteByContent"
"deleteContentBackward"
"deleteContentForward"
"
historyUndo"
"historyRedo" "formatBold"
"formatItalic"
"formatUnderline"
"formatStrikethrough"
"formatSuperscript"
"formatSubscript"
"formatJustifyFull"
"formatJustifyCenter"
"formatJustifyRight"
formatJustifyCenter
"formatJustifyRight
" "
" formatRemove "
" formatSetBlockTextDirection "
" formatSetInlineTextDirection "
" formatBackColor "
"formatFontColor"
"formatFontName"
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
Cú pháp
event.inputType
Chi tiết kỹ thuật
Giá trị trả lại: | Chuỗi, cho biết loại hành động đã được thực hiện |
---|
Các trang liên quan
Phương thức Dom Document executeCommand ()