| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/Web/API/Document/execCommand | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
Avoid using this feature in new projects.
The execCommand() method is "not implemented consistently or fully by user agents, and it is not expected that this will change in the foreseeable future."
This feature may be a candidate for removal from web standards or browsers.
Consider using the following features instead: Async clipboard contenteditable.
HTML designMode execCommand . (, ) ( ) () . contentEditable execCommand() .
bool = document.execCommand(aCommandName, aShowDefaultUI, aValueArgument);
false Boolean .
aCommandNameaShowDefaultUI UI Boolean . Mozilla .
aValueArgument (insertImage URL ) DOMString . null .
backColor . styleWithCss . <color> . Internet Explorer .
boldcontentReadOnly. boolean true/false . (Internet Explorer .)
copy. . .
createLink. HREF URI . URI . (Internet Explorer null URI .)
cut. . .
decreaseFontSize <small> . (Internet Explorer .)
delete.
enableInlineTableEditing. (Internet Explorer .)
enableObjectResizing.
fontName . ( "Arial") .
fontSize . HTML (1-7) .
foreColor. .
formatBlockHTML (Firefox BLOCKQUOTE ). . ( "H1", "P", "DL", "BLOCKQUOTE"). (Internet Explorer H1 - H6 ADDRESS, PRE < > "<H1>" .)
forwardDeleteheading. ( "H1", "H6") . (Internet Explorer Safari .)
hiliteColor. . UseCSS . (Internet Explorer .)
increaseFontSizeBIG . (Internet Explorer .)
indent. Firefox .
insertBrOnReturnbr . (Internet Explorer .)
insertHorizontalRule( ).
insertHTMLHTML ( ). HTML . (Internet Explorer .)
insertImage( ). SRC URI . URI . (Internet Explorer null URI .)
insertOrderedList.
insertUnorderedList.
insertParagraph. (Internet Explorer .)
insertText( ).
italic/. (Internet Explorer I EM .)
justifyCenter.
justifyFull.
justifyLeft.
justifyRight.
outdent.
paste( ). user.js . [1].
redo.
removeFormat.
selectAll.
strikeThrough/ .
subscript/ .
superscript/ .
underline/ .
undo.
unlink.
useCSS HTML CSS . boolean true/false . : (CSS false HTML true). (Internet Explorer .) . styleWithCSS .
styleWithCSSuseCSS . . style true, false .
CodePen how to use .
HTMLElement.contentEditabledocument.designModedocument.execCommand.This page was last modified on 2024 6 15 by MDN contributors.
DocumentactiveElementactiveViewTransitionadoptedStyleSheetsalinkColorallanchorsappletsbgColorbodycharacterSetchildElementCountchildrencompatModecontentTypecookiecurrentScriptcustomElementRegistrydefaultViewdesignModedirdoctypedocumentElementdocumentURIdomainembedsfeaturePolicyfgColorfirstElementChildfontsformsfragmentDirectivefullscreenfullscreenElementfullscreenEnabledheadhiddenimagesimplementationlastElementChildlastModifiedlastStyleSheetSetlinkColorlinkslocationpictureInPictureElementpictureInPictureEnabledpluginspointerLockElementpreferredStyleSheetSetprerenderingreadyStatereferrerrootElementscriptsscrollingElementselectedStyleSheetSetstyleSheetsstyleSheetSetstimelinetitleURLvisibilityStatevlinkColorxmlEncodingxmlVersionadoptNode()append()ariaNotify()browsingTopics()caretPositionFromPoint()caretRangeFromPoint()clear()close()createAttribute()createAttributeNS()createCDATASection()createComment()createDocumentFragment()createElement()createElementNS()createEvent()createExpression()createNodeIterator()createNSResolver()createProcessingInstruction()createRange()createTextNode()createTouch()createTouchList()createTreeWalker()elementFromPoint()elementsFromPoint()enableStyleSheetsForSet()evaluate()execCommand()exitFullscreen()exitPictureInPicture()exitPointerLock()getAnimations()getElementById()getElementsByClassName()getElementsByName()getElementsByTagName()getElementsByTagNameNS()getSelection()hasFocus()hasPrivateToken()hasRedemptionRecord()hasStorageAccess()hasUnpartitionedCookieAccess()importNode()moveBefore()mozSetImageElement()open()prepend()queryCommandEnabled()queryCommandState()queryCommandSupported()querySelector()querySelectorAll()releaseCapture()replaceChildren()requestStorageAccess()requestStorageAccessFor()startViewTransition()write()writeln()AbortControllerAbortSignalAbstractRangeAttrCDATASectionCharacterDataCommentCustomEventDOMErrorDOMExceptionDOMImplementationDOMParserDOMTokenListDocumentFragmentDocumentTypeElementEventEventTargetHTMLCollectionMutationObserverMutationRecordNamedNodeMapNodeNodeIteratorNodeListProcessingInstructionQuotaExceededErrorRangeShadowRootStaticRangeTextTreeWalkerXMLDocumentXPathEvaluatorXPathExpressionXPathResultXSLTProcessorYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |