현재의 범위에세 지정된 명령이 지원되는가를 나타내는 부울값을 반환한다.
![]() | Script | [bVal=]expression.queryCommandSupported(sCmdID) |
지정된 명령이 지원되는가를 부울값으로 반환한다.
true | 지정된 명령이 지원된다. |
false | 지정된 명령이 지원되지 않는다. |
개체 | script | IE |
---|---|---|
document | document.queryCommandSupported(sCmdID) | IE4.0(win16,win32,unix,mac),IE5.5(ce) |
controlRange | controlRange.queryCommandSupported(sCmdID) | IE5(win16,win32,unix,mac),IE5.5(ce) |
TextRange | TextRange.queryCommandSupported(sCmdID) | IE4.0(win16,win32,unix,mac),IE5.5(ce) |
![]() | queryCommandSupported 메서드⇒ | ![]() | ![]() ![]() ![]() |
주어진 명령에 따른 관련 값을 디스플레이한다.
<BUTTON onClick="QueryCommand()">명령에 따른 관련 값 얻기</BUTTON> <SCRIPT language=VBScript> Sub QueryCommand() '현재의 선택에서 명령이 지원되는가를 출력한다. Dim objApp As FrontPage.Application Dim objDoc As DispFPHTMLDocument Dim strUser As String Dim strYN Set objApp = FrontPage.Application Set objDoc = objApp.ActiveDocument strUser = InputBox("수행할 명령을 입력하라.") If objDoc.queryCommandSupported(cmdID:=strUser) = True Then strYN="된다." Else strYN="되지 않는다." End If MsgBox "이 명령(" & strUser & ")은 현재 선택으로 지원" & strYN End Sub </SCRIPT>
![]() | queryCommandSupported 메서드 | ![]() ![]() |
최종 수정: 05/15/2025 07:50:13 | ![]() All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/method/queryCommandSupported.html |