एचटीएमएल डोम दस्तावेज़ निष्पादन कमांड ()
उदाहरण
चयनित टेक्स्ट को बोल्ड बनाएं:
document.execCommand("bold");
परिभाषा और उपयोग
execCommand() विधि बहिष्कृत है। इसका उपयोग ना करें।
एप्लेट्स संपत्ति सभी नए ब्राउज़रों में एक खाली HTMLCollection देता है।
<एप्लेट> तत्व 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 यदि आदेश समर्थित है, अन्यथा false . |