Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to add a script to the ActiveX Calendar Control in FrontPage 2000


View products that this article applies to.

This article was previously published under Q205686
For a Microsoft FrontPage 98 version of this article, see 194211 (http://support.microsoft.com/kb/194211/ ) .

For a Microsoft FrontPage 97 version of this article, see 164620 (http://support.microsoft.com/kb/164620/ ) .
For a Microsoft FrontPage 98 version of this article, see 194211 (http://support.microsoft.com/kb/194211/ ) .
For a Microsoft FrontPage 97 version of this article, see 164620 (http://support.microsoft.com/kb/164620/ ) .

↑ Back to the top


Summary

The ActiveX Calendar Control provides a way of displaying calendar-related events on a Web page. ActiveX Controls may be combined to add greater functionality to your Web pages than would be possible with a single control.

NOTE: Microsoft Office 2000 installs the ActiveX Calendar Control. If you do not have Microsoft Office installed, the Calendar Control may not appear in the Pick A Control list.

Displaying the Date Selected in a Message Box

  1. Open a page in the Page view of FrontPage.
  2. On the Insert menu, point to Advanced, and then click ActiveX Control.
  3. In the Pick A Control list, click Calendar Control 9.0 and click OK.
  4. Click the HTML tab
  5. Insert the following code under the <BODY> tag:
    <SCRIPT LANGUAGE=vbscript>
    <!--
    Sub Calendar1_Click()
    Call window.alert(Calendar1.Value)
    End Sub
    -->
    </SCRIPT>
    						
  6. Save the page and preview the page in the browser



↑ Back to the top


References


For more information about Microsoft Visual Basic Scripting, visit the following Microsoft Web site:


↑ Back to the top


Keywords: KB205686, kbhowtomaster, kbscript, kbactivex

↑ Back to the top

Article Info
Article ID : 205686
Revision : 3
Created on : 8/8/2007
Published on : 8/8/2007
Exists online : False
Views : 274