HTML DOM Belgesi execCommand()
Örnek
Seçili metni kalın yapın:
document.execCommand("bold");
Tanım ve Kullanım
execCommand() yöntemi kullanımdan kaldırılmıştır. Bunu kullanma.
Applets özelliği, tüm yeni tarayıcılarda boş bir HTMLCollection döndürür.
<applet> öğesi HTML5'te desteklenmez.
Sözdizimi
document.execCommand(command, showUI, value)
parametreler
Parameter | Description |
command |
The name of the command to execute:
"backColor" "bold" "createLink" "copy" "cut" "defaultParagraphSeparator" "delete" "fontName" "fontSize" "foreColor" "formatBlock" "forwardDelete" "insertHorizontalRule" "insertHTML" "insertImage" "insertLineBreak" "insertOrderedList" "insertParagraph" "insertText" "insertUnorderedList" "justifyCenter" "justifyFull" "justifyLeft" "justifyRight" "outdent" "paste" "redo" "selectAll" "strikethrough" "styleWithCss" "subscript" "superscript" "undo" "unlink" "useCSS" |
showUI | A Boolean. Specifies if the UI should be shown or not. |
value | Some commands need a value to be completed. |
Geri dönüş değeri
Tip | Açıklama |
Boole | true komut destekleniyorsa, aksi takdirde false . |