ÁöÁ¤µÈ ¸í·ÉÀÌ ºÒ¸íÈ®ÇÑ »óÅÂÀΰ¡¸¦ ³ªÅ¸³»´Â ºÎ¿ï°ªÀ» ¹ÝȯÇÑ´Ù.
¸í·É¾î »ç¿ëÀÌ °¡´ÉÇÑ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
true | ±× ¸í·É¾î°¡ ºÒ¸íÈ®ÇÑ »óÅ¿¡ ÀÖ´Ù. |
false | ±× ¸í·É¾î°¡ ºÒ¸íÈ®ÇÑ »óÅ¿¡ ÀÖÁö ¾Ê´Ù. |
°³Ã¼ | script | IE |
---|
ÁÖ¾îÁø ¸í·É¿¡ µû¸¥ °ü·Ã °ªÀ» µð½ºÇ÷¹ÀÌÇÑ´Ù.
<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.queryCommandIndeterm(cmdID:=strUser) = True Then strYN="ÀÌ´Ù." Else strYN="°¡ ¾Æ´Ï´Ù." End If MsgBox "ÀÌ ¸í·É(" & strUser & ")ÀÌ ºÒ¸íÈ®ÇÑ »óÅÂ" & strYN End Sub </SCRIPT>