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: Use Hyperlink and DHTML to Set the Default Home Page in FrontPage 2000


View products that this article applies to.

Summary

This article demonstrates how to make a window appear when a hyperlink is clicked to ask the user whether they want to make a specified address their default home page.

NOTE: This article uses custom Dynamic Hypertext Markup Language (DHTML) and cascading style sheets (CSS) that may not be available in all browsers.

For more information about compatibility issues, click Microsoft FrontPage Help on the Help menu, type compatibility in the Answer Wizard, and then click Search to view the topic.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

NOTE: You may receive an error message if you copy the examples directly from this article and paste them into FrontPage. The angle brackets (< and >) may appear as escaped HTML code (< and >). To work around this behavior, paste the script into a blank Notepad document, and then copy it from Notepad before you paste it into FrontPage.

Code Sample

  1. Open a new, blank page in FrontPage.
  2. Click the HTML tab.
  3. Insert the following JavaScript code between the <BODY> and </BODY> tags.
    <A HREF="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.microsoft.com');">
    Make Microsoft Your Homepage</A>
    					
  4. Save the page, and then preview it in the browser.



↑ Back to the top


References


For more information about Microsoft JScript, visit the following Microsoft Web site:








↑ Back to the top


Keywords: KB287403, kbpending, kbhowtomaster, kbhowto

↑ Back to the top

Article Info
Article ID : 287403
Revision : 3
Created on : 7/4/2007
Published on : 7/4/2007
Exists online : False
Views : 257