Microsoft KB Archive/288181

= FP: How to Create a Home Page Hot Key in FrontPage by Using JavaScript =

Article ID: 288181

Article Last Modified on 1/31/2007

-

APPLIES TO


 * Microsoft FrontPage 2002 Standard Edition
 * Microsoft FrontPage 2000 Standard Edition

-



This article was previously published under Q288181



SUMMARY
This article illustrates how a key that is pressed when a user is viewing a Web page can be used to direct the browser to another location. The JavaScript example presented in this article associates the &quot;H&quot; key with a URL. When a user presses H, the browser navigates to that URL. You can use this procedure on a Web site as a &quot;hot key&quot; to return to the site home page.

NOTE: This article uses custom JavaScript that may not be available in all browsers. For more information about this topic, click Microsoft FrontPage Help on the Help menu, type compatibility in the Answer Wizard, and then click Search to view the topic.



MORE INFORMATION
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 may appear as escaped HTML code. 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
 Open a Web in FrontPage. Open the page where you want to insert the &quot;hot key&quot; feature. Switch to HTML view.  Insert the following JavaScript code in the  section of the HTML page. (Change the destination HTTP address to the URL that you want to become the home page.) 

 When you preview the Web page in your browser and press H on your keyboard, your browser navigates to the page that you specified in the JavaScript.</li></ol>

Additional query words: Javascript hotkey homepage inf

Keywords: kbhowto KB288181

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.