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
- Open a new, blank page in FrontPage.
- Click the HTML tab.
- 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>
- Save the page, and then preview it in the browser.
back to the top