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



The information in this article applies to:

  • Microsoft FrontPage 2000

This article was previously published under Q205686
For a Microsoft FrontPage 98 version of this article, see 194211.

For a Microsoft FrontPage 97 version of this article, see 164620.

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.

back to the top

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

Modification Type:MajorLast Reviewed:8/15/2006
Keywords:kbActiveX kbScript kbHOWTOmaster KB205686 kbAudITPro