InputEvent inputTypeคุณสมบัติ
ตัวอย่าง
ส่งคืนประเภทของอินพุตที่เหตุการณ์เกี่ยวกับ:
function myFunction(event) {
var x = event.inputType;
}
ความหมายและการใช้งาน
คุณสมบัติinputType
ส่งคืนชนิดของการเปลี่ยนแปลงที่ทำโดยเหตุการณ์
ค่าที่เป็นไปได้:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList"
"insertUnorderedList" "
insert HorizontalRule"
"insertFromYank"
"
insertFromDrop" "
insertFromPaste" "
insertTranspose" "
insertCompositionText" "
insertdelordLink Composition"
"insertdeleteLink Composition"
"insertdeleteLink
" "
"deleteWordForward"
"deleteSoftLineBackward"
"ลบSoftLineForward"
"deleteEntireSoftLine"
"deleteHardLineBackward"
"deleteHardLineForward"
"deleteByDrag"
"deleteByCut"
"deleteByContent"
"deleteContentBackward"
"deleteContentForward" "
historyUndo" "
historyRedo" "formatBold" "
formatItalic" "
formatUnderline" "formatStrikethrough" " formatSuperscript " "formatSubscript" " format JustifyOutFull " "
format JustifyCenter" "
formatformat"
"รูป
แบบ JustifyR " " "formatRemove" "formatSetBlockTextDirection" "formatSetInlineTextDirection" "รูปแบบ BackColor" "formatFontColor" "formatFontName"
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
ไวยากรณ์
event.inputType
รายละเอียดทางเทคนิค
คืนมูลค่า: | A String ระบุว่าได้กระทำการใดไปแล้ว |
---|
หน้าที่เกี่ยวข้อง
Dom Document execCommand() Method