HTML DOM စာရွက်စာတမ်း execCommand()
ဥပမာ
ရွေးချယ်ထားသော စာသားကို ရဲရင့်အောင်လုပ်ပါ
document.execCommand("bold");
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
execCommand() နည်းလမ်းကို ရပ်တန့်ထားသည်။ မသုံးပါနှင့်။
applets ပိုင်ဆိုင်မှုသည် ဘရောက်ဆာအသစ်အားလုံးတွင် ဗလာ HTMLCollection ကို ပြန်ပေးသည်။
<applet> ဒြပ်စင်ကို HTML5 တွင် ပံ့ပိုးမထားပါ။
အထားအသို
document.execCommand(command, showUI, value)
ကန့်သတ်ချက်များ
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. |
တန်ဖိုးကို ပြန်ပေးသည်။
ရိုက်ပါ။ | ဖော်ပြချက် |
ဘူလီယံ | true command ကိုထောက်ခံပါက၊ မဟုတ်လျှင် false ။ |