Article ID: 205686 - Last Review: August 8, 2007 - Revision: 2.1

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

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/ ) .

On This Page

Expand all | Collapse all

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



REFERENCES


For more information about Microsoft Visual Basic Scripting, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms950396.aspx (http://msdn2.microsoft.com/en-us/library/ms950396.aspx)




APPLIES TO
  • Microsoft FrontPage 2000 Standard Edition
Keywords: 
kbactivex kbscript kbhowtomaster KB205686
 

Article Translations