HOW TO: Use Hyperlink and DHTML to Set the Default Home Page in FrontPage 2000 (287403)



The information in this article applies to:

  • Microsoft FrontPage 2000

This article was previously published under Q287403

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.

back to the top

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







Modification Type:MajorLast Reviewed:6/18/2005
Keywords:kbhowto kbHOWTOmaster kbpending KB287403 kbAudITPro