ƯÁ¤ ¸í·É(command)¿¡ ¿¬°üµÈ ÅؽºÆ® °ªÀ» ´ëÇ¥ÇÏ´Â ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
expression (Ç¥Çö½Ä : expression)
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, Àû¿ë ¸ñ·Ï¿¡ ÀÖ´Â Çϳª ÀÌ»ó °³Ã¼¸¦ ¹ÝȯÇϴ ǥÇö½ÄÀÌ´Ù.
sCmdID : (¸í·É¾î ÀνÄÀÚ)
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, À¯¿ëÇÑ ¸í·É ¸ñ·Ï command Identifiers¸¦ ÁöÁ¤ÇÏ´Â ¹®ÀÚ¿­ÀÌ´Ù.
Àû¿ë
°³Ã¼
FPHTMLDocument
IHTMLDocument2
IHTMLTxtRange
ÂüÁ¶
execCommand execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandText queryCommandValue

ÁÖ¾îÁø ¸í·É¿¡ µû¸¥ °ü·Ã °ªÀ» µð½ºÇ÷¹ÀÌÇÑ´Ù.

<BUTTON onClick="QueryCommand()">¸í·É¿¡ µû¸¥ °ü·Ã °ª ¾ò±â</BUTTON>

<SCRIPT language=VBScript>
Sub QueryCommand()  'ƯÁ¤ ¸í·ÉÀÇ ¹®ÀÚ¿­À» Ãâ·ÂÇÑ´Ù.
  Dim objApp As FrontPage.Application
  Dim objDoc As DispFPHTMLDocument
  Dim strUser As String
  Dim strValue As String

  Set objApp = FrontPage.Application
  Set objDoc = objApp.ActiveDocument
  strUser = InputBox("¼öÇàÇÒ ¸í·ÉÀ» ÀÔ·ÂÇ϶ó.")
  strValue = objDoc.queryCommandText(strUser)
  MsgBox "ÁöÁ¤ÇÑ ¸í·ÉÀÇ °á°ú°ªÀº " & strValue
End Sub
</SCRIPT>