Help and Support
 

powered byLive Search

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

Article ID:205686
Last Review:August 8, 2007
Revision:2.1
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

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:
http://msdn2.microsoft.com/en-us/library/ms950396.aspx (http://msdn2.microsoft.com/en-us/library/ms950396.aspx)



Back to the top


APPLIES TO
Microsoft FrontPage 2000 Standard Edition

Back to the top

Keywords: 
kbactivex kbscript kbhowtomaster KB205686

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.