inputTypeプロパティ
inputTypeプロパティは、inputやtextareaなどの編集できるエレメント、contenteditableプロパティによって編集可能になったエレメントにおいてその編集操作のタイプを返すInputEventインターフェイスのプロパティです。
inputTypeプロパティが返す操作タイプは以下です。
- 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
構文(Syntax)
返り値はString型です。
String = event.inputType;
返り値(Return Values)
Type | 摘要 |
---|---|
String | 編集操作のタイプ |
関連(Related)
HTML、CSS、DOMのFORMに関する用途一覧です。
HTML
- <fieldset>、 <form>、 <label>、 <legend>、 <output>
- button
- <button>
- 入力(input)
- <datalist>、 <input>、
- 選択(select)
- <optgroup>、 <option>、 <select>
- 文章編集(textarea)
- <textarea>
CSS
エレメントに関する用途一覧を参照して下さい。